Can't change the name of the "master" node in docker-compose.yml
- Dominant language
- Dockerfile
- Stars
- 273
- Forks
- 102
- Avg merge
- 5d 20h
- Merged PRs (30d)
- 2
Description
I'm integrating your docker-compose.yml (the setup with one worker, that is) into mine. I've noticed that changing the service name of "master" causes the setup to fail.
YML with "master" changed to "citus_master":
```
version: '2.1'
services:
citus_master:
container_name: "${COMPOSE_PROJECT_NAME:-citus}_master"
image: 'citusdata/citus:7.4.1'
ports: ["${MASTER_EXTERNAL_PORT:-5432}:5432"]
labels: ['com.citusdata.role=Master']
worker:
image: 'citusdata/citus:7.4.1'
labels: ['com.citusdata.role=Worker']
depends_on: { manager: { condition: service_healthy } }
manager:
container_name: "${COMPOSE_PROJECT_NAME:-citus}_manager"
image: 'citusdata/membership-manager:0.2.0'
volumes: ['/var/run/docker.sock:/var/run/docker.sock']
depends_on: { citus_master: { condition: service_healthy } }
```
`docker-compose up; docker-compose down -v` output:
```
Creating network "XXX_default" with the default driver
Creating citus_master ... done
Creating citus_manager ... done
ERROR: for worker Container "552289a87b71" is unhealthy.
ERROR: Encountered errors while bringing up the project.
Stopping citus_manager ... done
Stopping citus_master ... done
Removing citus_manager ... done
Removing citus_master ... done
Removing XXX_worker_1 ... done
Removing network XXX_default
```
Are there some hardcodes somewhere, that are causing this? Should I pass some other option when I change the name of the service?
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.