Skip to content

Commit

Permalink
fix compose container names
Browse files Browse the repository at this point in the history
  • Loading branch information
danangmassandy committed Apr 2, 2024
1 parent 71fb1c6 commit a90d7b9
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions deployment/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,13 +38,13 @@ x-common-django:
services:
redis:
image: bitnami/redis:7.0.2
container_name: "cplus_api_redis"
container_name: "cplus-api-redis"
environment:
- REDIS_PASSWORD=${REDIS_PASSWORD:-redis_password}

db:
image: kartoza/postgis:14-3.3
container_name: "cplus_api_db"
container_name: "cplus-api-db"
volumes:
- data-volume:/opt/postgres/data
environment:
Expand All @@ -56,7 +56,7 @@ services:

dbbackups:
image: kartoza/pg-backup:14-3.3
container_name: "cplus_api_dbbackups"
container_name: "cplus-api-dbbackups"
environment:
# take care to let the project name below match that
# declared in the top of the makefile
Expand All @@ -75,7 +75,7 @@ services:

django:
<<: *default-common-django
container_name: "cplus_api_django"
container_name: "cplus-api-django"
command: 'uwsgi --ini /uwsgi.conf'
volumes:
- static-data:/home/web/static
Expand All @@ -87,7 +87,7 @@ services:

celery_beat:
<<: *default-common-django
container_name: "cplus_api_celery_beat"
container_name: "cplus-api-celery-beat"
entrypoint: []
command: 'celery -A core beat --loglevel=info --scheduler django_celery_beat.schedulers:DatabaseScheduler'
links:
Expand All @@ -96,7 +96,7 @@ services:

worker:
<<: *default-common-django
container_name: "cplus_api_worker"
container_name: "cplus-api-worker"
entrypoint: []
command: '/bin/bash -c /home/web/django_project/worker_entrypoint.sh'
links:
Expand All @@ -105,7 +105,7 @@ services:
dev:
image: kartoza/${COMPOSE_PROJECT_NAME:-django_project}_dev
<<: *default-common-django
container_name: "cplus_api_dev_django"
container_name: "cplus-api-dev-django"
entrypoint: []
volumes:
- static-data:/home/web/static
Expand All @@ -117,7 +117,7 @@ services:

nginx:
image: nginx
container_name: "cplus_api_nginx"
container_name: "cplus-api-nginx"
hostname: nginx
volumes:
- conf-data:/etc/nginx/conf.d:ro
Expand Down

0 comments on commit a90d7b9

Please sign in to comment.