diff options
author | 2018-09-05 20:07:10 +0200 | |
---|---|---|
committer | 2018-09-05 20:07:10 +0200 | |
commit | 1a9215ac4b3b859a8f9b96fdf64ea05ae8cdcdf0 (patch) | |
tree | d4f0c7b62320b4de82d028172a258cec04ba7dd0 /docker/pysite.dockerapp | |
parent | Login to proper registry. (diff) |
Add `nging` for static files.
Diffstat (limited to 'docker/pysite.dockerapp')
-rw-r--r-- | docker/pysite.dockerapp | 49 |
1 files changed, 49 insertions, 0 deletions
diff --git a/docker/pysite.dockerapp b/docker/pysite.dockerapp new file mode 100644 index 00000000..4a811861 --- /dev/null +++ b/docker/pysite.dockerapp @@ -0,0 +1,49 @@ +version: 0.1.0 +name: pysite +description: | + Our community website, built on Django and PostgreSQL. +#namespace: python-discord +maintainers: + - name: Johannes Christ + email: [email protected] + +--- +version: "3.6" +services: + django: + image: registry.gitlab.com/python-discord/projects/site/django:latest + ports: + - "127.0.0.1:4000:4000" + environment: + DATABASE_URL: "postgres://${pg_user}:${pg_passwd}@${pg_host}/${pg_db}" + DEBUG: 0 + SECRET_KEY: "${secret_key}" + depends_on: + - migrator + - postgres + + postgres: + image: postgres:11-alpine + environment: + POSTGRES_DB: "${pg_db}" + POSTGRES_USER: "${pg_user}" + POSTGRES_PASSWORD: "${pg_passwd}" + + migrator: + image: registry.gitlab.com/python-discord/projects/site/django:latest + environment: + DATABASE_URL: "postgres://${pg_user}:${pg_passwd}@${pg_host}/${pg_db}" + DEBUG: 0 + SECRET_KEY: "${secret_key}" + command: "python manage.py migrate" + depends_on: + - postgres + +--- +pg_user: pysite +pg_db: pysite +pg_passwd: '' +pg_host: postgres +secret_key: 'suitable-for-development-only' + +# vim: ft=yaml: |