I have dev-docker-compose.yml
with several backends and several databases like postgres
, redis
etc...
Now I want to create test-docker-compose.yml
with changed name for the services
For example I had:
postgres:
image: postgres
restart: always
ports:
- "5432:5432"
volumes:
- postgres:/var/lib/postgresql/data
and now i have changed it to
test_postgres:
image: postgres
restart: always
ports:
- "5432:5432"
volumes:
- test_postgres:/var/lib/postgresql/data
But when I connect to it with navicat
or dbeaver
I see the same values that was in first variant.
Can somebody explain me why this behavior exist and how to solve it?