Closed notkksm closed 1 year ago
Unfortunately, you're going to have more luck finding a dedicated support forum, such as the Docker Community Slack, Server Fault, Unix & Linux, or Stack Overflow (we don't have the bandwidth to provide detailed support in our issue tracker).
If you are changing the port that postgres is listening on, then you need to also change the port mapping if you want to access it through the host IP.
ports:
- - "5433:5432"
+ - "5433:5433"
command: -p 5433
Or you can just leave postgres on the default port and map to a custom port on the Docker host side. Other containers could then use the default, but access through your host IP would be the custom port.
ports:
- "5433:5432"
-command: -p 5433
When i try to connect my spring application with postgres in docker i have an error
FATAL: database "animals" does not exist
` I read that the reason could be that i have postgres on my pc and i changed the port, but i still see the same error. What is my mistake? Thanks! ( i see it in console:docker-compose.yml