Add support for a configuration file.

This commit is contained in:
Ske
2019-03-07 16:29:46 +01:00
parent 6794f0ab03
commit f21fd968fd
9 changed files with 51 additions and 82 deletions

View File

@@ -5,18 +5,12 @@ services:
entrypoint:
- python
- bot_main.py
volumes:
- "./pluralkit.conf:/app/pluralkit.conf:ro"
environment:
- "DATABASE_URI=postgres://postgres:postgres@db:5432/postgres"
depends_on:
- db
environment:
- CLIENT_ID
- TOKEN
- LOG_CHANNEL
- TUPPERWARE_ID
- "DATABASE_USER=postgres"
- "DATABASE_PASS=postgres"
- "DATABASE_NAME=postgres"
- "DATABASE_HOST=db"
- "DATABASE_PORT=5432"
restart: always
api:
build: src/
@@ -29,11 +23,7 @@ services:
ports:
- "2939:8080"
environment:
- "DATABASE_USER=postgres"
- "DATABASE_PASS=postgres"
- "DATABASE_NAME=postgres"
- "DATABASE_HOST=db"
- "DATABASE_PORT=5432"
- "DATABASE_URI=postgres://postgres:postgres@db:5432/postgres"
db:
image: postgres:alpine
volumes: