mirror of
https://github.com/cookiecutter/cookiecutter-django.git
synced 2025-08-07 21:44:52 +03:00
Re-order django and postgres services in production.yml
This commit is contained in:
parent
f7e0cd88e1
commit
34f97821a4
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user