diff --git a/{{cookiecutter.project_slug}}/production.yml b/{{cookiecutter.project_slug}}/production.yml index af54b4442..00df90d56 100644 --- a/{{cookiecutter.project_slug}}/production.yml +++ b/{{cookiecutter.project_slug}}/production.yml @@ -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: