Re-order django and postgres services in production.yml

This commit is contained in:
Nikita P. Shupeyko 2017-07-30 16:15:17 +03:00
parent f7e0cd88e1
commit 34f97821a4

View File

@ -5,13 +5,6 @@ volumes:
postgres_backup: {}
services:
postgres:
build: ./compose/postgres
volumes:
- postgres_data:/var/lib/postgresql/data
- postgres_backup:/backups
env_file: .env
django:
build:
context: .
@ -22,6 +15,13 @@ services:
command: /gunicorn.sh
env_file: .env
postgres:
build: ./compose/postgres
volumes:
- postgres_data:/var/lib/postgresql/data
- postgres_backup:/backups
env_file: .env
nginx:
build: ./compose/nginx
depends_on: