You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This way, the container will share the same network as the host and it will be able to communicate with an external service.
If the database is in the same network as the API, you will just have to modify the environment variable provided to the API container in the docker-compose.yml file.
I think it is also possible to only map the single host port to port 5432 in the container: https://docs.docker.com/compose/networking/. This way, you don't expose all your host ports to the containers but only the port they require to reach.
I am trying to setup ctfnote dockerized and connect it to another postgresql db running on a port other than 5432.
I haven't found any way to make it work.
Is there an obvious way I am missing?
The text was updated successfully, but these errors were encountered: