![]() It is important to note the distinction between HOST_PORT and CONTAINER_PORT. For example, web’sĪpplication code could connect to the URL postgres://db:5432 and start Get back the appropriate container’s IP address. In Compose file format 3.x, you can optionally set the attachable propertyĮach container can now look up the hostname web or db and This means that standaloneĬontainers can connect to overlay networks. Starting in Compose file format 2.1, overlay networks are always created asĪttachable, and this is not configurable. In v2.1+, overlay networks are always attachable A container is created using db’s configuration.A container is created using web’s configuration.A network called myapp_default is created.When you run docker-compose up, the following happens:
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |