diff options
author | 2019-01-13 11:46:13 +0100 | |
---|---|---|
committer | 2019-01-13 11:46:13 +0100 | |
commit | 0835f85f082aeba4bc3c22ce1fbe479564eca164 (patch) | |
tree | 9b51a947d771d58bed3f4d5cf30199db531660a6 /docker-compose.yml | |
parent | Drop `collectstatic` task again. (diff) |
Add an example `docker-compose.yml`.
Diffstat (limited to 'docker-compose.yml')
-rw-r--r-- | docker-compose.yml | 23 |
1 files changed, 16 insertions, 7 deletions
diff --git a/docker-compose.yml b/docker-compose.yml index ee302d4e..1f101c0b 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -10,7 +10,21 @@ version: "3.6" services: - django: + bot: + image: pythondiscord/bot:django + environment: + BOT_TOKEN: ${BOT_TOKEN?bot token needs to be set} + # Set me once you configured me in the Django Admin! + BOT_API_KEY: ${BOT_API_KEY} + + postgres: + image: postgres:11-alpine + environment: + POSTGRES_DB: pysite + POSTGRES_PASSWORD: supersecretpassword + POSTGRES_USER: pysite + + web: build: context: . dockerfile: docker/app/alpine/3.7/Dockerfile @@ -26,9 +40,4 @@ services: DEBUG: "true" SECRET_KEY: suitable-for-development-only - postgres: - image: postgres:11-alpine - environment: - POSTGRES_DB: pysite - POSTGRES_PASSWORD: supersecretpassword - POSTGRES_USER: pysite +# vim: sw=2 ts=2: |