Remove bind mounts for docker compose volumes

This commit is contained in:
Jeh 2023-01-17 11:55:38 +05:30 committed by GitHub
parent 421185c539
commit 439b1aadb7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,6 @@ services:
context: . context: .
dockerfile: ./compose/production/django/Dockerfile dockerfile: ./compose/production/django/Dockerfile
image: {{ cookiecutter.project_slug }}_production_django image: {{ cookiecutter.project_slug }}_production_django
platform: linux/x86_64
depends_on: depends_on:
- postgres - postgres
- redis - redis
@ -26,8 +25,8 @@ services:
dockerfile: ./compose/production/postgres/Dockerfile dockerfile: ./compose/production/postgres/Dockerfile
image: {{ cookiecutter.project_slug }}_production_postgres image: {{ cookiecutter.project_slug }}_production_postgres
volumes: volumes:
- production_postgres_data:/var/lib/postgresql/data:Z - production_postgres_data:/var/lib/postgresql/data
- production_postgres_data_backups:/backups:z - production_postgres_data_backups:/backups
env_file: env_file:
- ./.envs/.production/.postgres - ./.envs/.production/.postgres
@ -39,7 +38,7 @@ services:
depends_on: depends_on:
- django - django
volumes: volumes:
- production_traefik:/etc/traefik/acme:z - production_traefik:/etc/traefik/acme
ports: ports:
- "0.0.0.0:80:80" - "0.0.0.0:80:80"
- "0.0.0.0:443:443" - "0.0.0.0:443:443"