Remove bind mounts for docker compose volumes (#3981)

Fix #3685
This commit is contained in:
Bruno Alla 2022-12-09 22:04:12 +00:00 committed by GitHub
parent c2602032c8
commit 2f92644fce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 5 deletions

View File

@ -35,8 +35,8 @@ services:
image: {{ cookiecutter.project_slug }}_production_postgres image: {{ cookiecutter.project_slug }}_production_postgres
container_name: {{ cookiecutter.project_slug }}_local_postgres container_name: {{ cookiecutter.project_slug }}_local_postgres
volumes: volumes:
- {{ cookiecutter.project_slug }}_local_postgres_data:/var/lib/postgresql/data:Z - {{ cookiecutter.project_slug }}_local_postgres_data:/var/lib/postgresql/data
- {{ cookiecutter.project_slug }}_local_postgres_data_backups:/backups:z - {{ cookiecutter.project_slug }}_local_postgres_data_backups:/backups
env_file: env_file:
- ./.envs/.local/.postgres - ./.envs/.local/.postgres

View File

@ -25,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
@ -38,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"