Reference the newly created .envs/**/.* files in production.yml

This commit is contained in:
Nikita P. Shupeyko 2017-08-24 19:42:31 +03:00
parent d7f0488ddf
commit c87c195f5f
2 changed files with 16 additions and 8 deletions

View File

@ -1,2 +1,2 @@
POSTGRES_PASSWORD=
POSTGRES_USER=
POSTGRES_PASSWORD=

View File

@ -13,26 +13,30 @@ services:
depends_on:
- postgres
- redis
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: /gunicorn.sh
env_file: .env
postgres:
build: ./compose/postgres
volumes:
- postgres_data:/var/lib/postgresql/data
- postgres_backup:/backups
env_file: .env
env_file:
- ./.envs/.production/.postgres
caddy:
build: ./compose/caddy
depends_on:
- django
volumes:
- caddy:/root/.caddy
env_file:
- ./.envs/.production/.caddy
ports:
- "0.0.0.0:80:80"
- "0.0.0.0:443:443"
volumes:
- caddy:/root/.caddy
env_file: .env
redis:
image: redis:3.0
@ -41,19 +45,23 @@ services:
build:
context: .
dockerfile: ./compose/django/Dockerfile
env_file: .env
depends_on:
- postgres
- redis
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: celery -A {{cookiecutter.project_slug}}.taskapp worker -l INFO
celerybeat:
build:
context: .
dockerfile: ./compose/django/Dockerfile
env_file: .env
depends_on:
- postgres
- redis
env_file:
- ./.envs/.production/.django
- ./.envs/.production/.postgres
command: celery -A {{cookiecutter.project_slug}}.taskapp beat -l INFO
{% endif %}