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