Networking in Compose | Docker Documentation
https://docs.docker.com/compose/networkingWithin the web container, your connection string to db would look like postgres://db:5432, and from the host machine, the connection string would look like postgres://{DOCKER_IP}:8001. Update containers. If you make a configuration change to a service and run docker-compose up to update it, the old container is removed and the new one joins the ...
Overview of Docker Compose | Docker Documentation
https://docs.docker.com/composeCompose is a tool for defining and running multi-container Docker applications. With Compose, you use a YAML file to configure your application’s services. Then, with a single command, you create and start all the services from your configuration. To learn more about all the features of Compose, see the list of features.