From 442718089747e2e92e807837d811264a771ae0f6 Mon Sep 17 00:00:00 2001 From: Denys Chura Date: Wed, 2 Oct 2024 18:23:36 +0300 Subject: [PATCH] Update `docker-compose.yml` to use hyphen in all resources names instead of underscore - Update `name` by replacing `_` with `-` so that the prefix for resources names uses a hyphen; - Update volumes names to use hyphen. --- .../docker/docker-compose.yml | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/{{ cookiecutter.project_slug }}/docker/docker-compose.yml b/{{ cookiecutter.project_slug }}/docker/docker-compose.yml index d9ccb29..d7fbba6 100644 --- a/{{ cookiecutter.project_slug }}/docker/docker-compose.yml +++ b/{{ cookiecutter.project_slug }}/docker/docker-compose.yml @@ -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 @@ -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: @@ -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 @@ -74,6 +74,6 @@ services: exit 0; " volumes: - pg_data: {} - redis_data: {} - minio_data: {} + pg-data: {} + redis-data: {} + minio-data: {}