2018-07-11 22:47:44 +00:00
|
|
|
version: '3'
|
|
|
|
services:
|
|
|
|
bot:
|
2018-08-01 22:36:50 +00:00
|
|
|
build: src/
|
|
|
|
entrypoint:
|
|
|
|
- python
|
|
|
|
- bot_main.py
|
2018-07-11 22:47:44 +00:00
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
environment:
|
2018-07-14 19:39:51 +00:00
|
|
|
- CLIENT_ID
|
2018-07-11 22:47:44 +00:00
|
|
|
- TOKEN
|
2018-09-07 16:47:36 +00:00
|
|
|
- LOG_CHANNEL
|
2018-12-11 20:02:30 +00:00
|
|
|
- TUPPERWARE_ID
|
2018-08-22 17:50:32 +00:00
|
|
|
- "DATABASE_USER=postgres"
|
|
|
|
- "DATABASE_PASS=postgres"
|
|
|
|
- "DATABASE_NAME=postgres"
|
|
|
|
- "DATABASE_HOST=db"
|
|
|
|
- "DATABASE_PORT=5432"
|
2018-07-17 20:09:20 +00:00
|
|
|
restart: always
|
2018-08-01 22:36:50 +00:00
|
|
|
api:
|
|
|
|
build: src/
|
|
|
|
entrypoint:
|
|
|
|
- python
|
|
|
|
- api_main.py
|
|
|
|
depends_on:
|
|
|
|
- db
|
|
|
|
restart: always
|
|
|
|
ports:
|
|
|
|
- "2939:8080"
|
2018-09-09 20:41:21 +00:00
|
|
|
environment:
|
|
|
|
- "DATABASE_USER=postgres"
|
|
|
|
- "DATABASE_PASS=postgres"
|
|
|
|
- "DATABASE_NAME=postgres"
|
|
|
|
- "DATABASE_HOST=db"
|
|
|
|
- "DATABASE_PORT=5432"
|
2018-07-11 22:47:44 +00:00
|
|
|
db:
|
|
|
|
image: postgres:alpine
|
|
|
|
volumes:
|
2018-07-14 19:07:25 +00:00
|
|
|
- "db_data:/var/lib/postgresql/data"
|
2018-07-11 22:47:44 +00:00
|
|
|
restart: always
|
2018-07-16 18:53:41 +00:00
|
|
|
|
2018-07-11 22:47:44 +00:00
|
|
|
volumes:
|
2018-10-11 09:23:20 +00:00
|
|
|
db_data:
|