Skip to content

Commit

Permalink
Merge pull request #82 from django-stars/clean-up-docker-resources-names
Browse files Browse the repository at this point in the history
Update `docker-compose.yml` to use hyphen in all resources names instead of underscore
  • Loading branch information
denys-chura authored Oct 4, 2024
2 parents b0c0868 + 86ad982 commit 9580f98
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions {{ cookiecutter.project_slug }}/docker/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: '{{ cookiecutter.project_slug }}'
name: "{{ cookiecutter.project_slug|replace('_', '-') }}"

# Configurations shared between api service, celery and celery beat.
x-base-api: &base-api
Expand Down Expand Up @@ -42,11 +42,11 @@ services:
POSTGRES_PASSWORD: {{ cookiecutter.__db_password }}
image: postgres:{{ cookiecutter.postgresql_version }}-alpine
volumes:
- pg_data:/var/lib/postgresql/data:rw
- pg-data:/var/lib/postgresql/data:rw
redis-db:
image: redis:{{ cookiecutter.redis_version }}-alpine
volumes:
- redis_data:/data:rw
- redis-data:/data:rw
mailpit:
image: axllent/mailpit:latest
ports:
Expand All @@ -60,7 +60,7 @@ services:
MINIO_ACCESS_KEY: {{ cookiecutter.__minio_access_key }}
MINIO_SECRET_KEY: {{ cookiecutter.__minio_secret_key }}
volumes:
- minio_data:/data
- minio-data:/data
command: [ "server", "--console-address", ":9001", "/data" ]
createbuckets:
image: minio/mc
Expand All @@ -74,6 +74,6 @@ services:
exit 0;
"
volumes:
pg_data: {}
redis_data: {}
minio_data: {}
pg-data: {}
redis-data: {}
minio-data: {}

0 comments on commit 9580f98

Please sign in to comment.