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: {}