2018-07-12 00:47:44 +02:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
bot:
|
2018-08-02 00:36:50 +02:00
|
|
|
build: src/
|
|
|
|
entrypoint:
|
|
|
|
- python
|
|
|
|
- bot_main.py
|
2019-03-07 16:29:46 +01:00
|
|
|
volumes:
|
|
|
|
- "./pluralkit.conf:/app/pluralkit.conf:ro"
|
|
|
|
environment:
|
|
|
|
- "DATABASE_URI=postgres://postgres:postgres@db:5432/postgres"
|
2018-07-12 00:47:44 +02:00
|
|
|
depends_on:
|
|
|
|
- db
|
2018-07-17 22:09:20 +02:00
|
|
|
restart: always
|
2018-08-02 00:36:50 +02:00
|
|
|
api:
|
|
|
|
build: src/
|
|
|
|
entrypoint:
|
|
|
|
- python
|
|
|
|
- api_main.py
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "2939:8080"
|
2018-09-09 22:41:21 +02:00
|
|
|
environment:
|
2019-03-07 16:29:46 +01:00
|
|
|
- "DATABASE_URI=postgres://postgres:postgres@db:5432/postgres"
|
2018-07-12 00:47:44 +02:00
|
|
|
db:
|
|
|
|
image: postgres:alpine
|
|
|
|
volumes:
|
2018-07-14 21:07:25 +02:00
|
|
|
- "db_data:/var/lib/postgresql/data"
|
2018-07-12 00:47:44 +02:00
|
|
|
restart: always
|
2018-07-16 20:53:41 +02:00
|
|
|
|
2018-07-12 00:47:44 +02:00
|
|
|
volumes:
|
2018-10-11 11:23:20 +02:00
|
|
|
db_data:
|