From 013eebb7fd0342962ae65df457b56614c892cfa4 Mon Sep 17 00:00:00 2001 From: Johannes Christ Date: Wed, 5 Sep 2018 20:40:39 +0200 Subject: Add a `docker-compose.yml` file. --- docker-compose.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 docker-compose.yml 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 -- cgit v1.2.3