aboutsummaryrefslogtreecommitdiffstats
path: root/docker-compose.yml
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2018-09-05 20:40:39 +0200
committerGravatar Johannes Christ <[email protected]>2018-09-05 20:40:39 +0200
commit013eebb7fd0342962ae65df457b56614c892cfa4 (patch)
treebbab3ec6e7ea1d05afde33da835afd5484638341 /docker-compose.yml
parentProperly set `CMD`. (diff)
Add a `docker-compose.yml` file.
Diffstat (limited to 'docker-compose.yml')
-rw-r--r--docker-compose.yml34
1 files changed, 34 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100644
index 00000000..542caa82
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,34 @@
+version: "3.6"
+services:
+ django:
+ image: registry.gitlab.com/python-discord/projects/site/django:latest
+ depends_on:
+ - migrator
+ - postgres
+ - web
+ environment:
+ DATABASE_URL: postgres://pysite:@postgres/pysite
+ DEBUG: "0"
+ SECRET_KEY: suitable-for-development-only
+ ports:
+ - "127.0.0.1:4000:4000"
+
+ migrator:
+ image: registry.gitlab.com/python-discord/projects/site/django:latest
+ command: python manage.py migrate
+ depends_on:
+ - postgres
+ environment:
+ DATABASE_URL: postgres://pysite:@postgres/pysite
+ DEBUG: "0"
+ SECRET_KEY: suitable-for-development-only
+
+ postgres:
+ image: postgres:11-alpine
+ environment:
+ POSTGRES_DB: pysite
+ POSTGRES_PASSWORD: ""
+ POSTGRES_USER: pysite
+
+ web:
+ image: pythondiscord/nging