About 23,000 results
Open links in new tab
  1. How to use host network for docker compose? - Stack Overflow

    Jun 13, 2019 · I want to use docker compose with the host network. I have a docker container that access a local REST api. Usually I run docker run --net=host -p 18080:8080 -t -i containera which …

  2. Communication between multiple docker-compose projects

    Jun 29, 2016 · To connect two docker-compose you need a network and putting both docker-composes in that network, you could create netwrok with docker network create name-of-network,

  3. docker-compose run with specified network name - Stack Overflow

    Jun 18, 2020 · Docker creates a default network for docker-compose and services which do not have any network configuration specified, will be using default network created by docker for that compose …

  4. Create networks automatically in Docker Compose

    Jul 22, 2017 · networks: network1: network2: .. to instruct compose to make the networks. They will be named <compose-dir>-<network name> Verify the creation by using docker network ls. You can also …

  5. Changing default network in docker compose - Stack Overflow

    Jun 8, 2016 · The top level network section defines the network for any service to use, including things like the network name, driver, and config. And the network section within a service indicates which …

  6. Adding default external network in docker-compose

    Oct 29, 2019 · The network my-pre-existing-network needs to be exist (docker-compose won't create networks specified as external) - it could be a docker network that was created from a different …

  7. How to config networks in docker-compose? - Stack Overflow

    11 Look closely, you named your network put_net but instead referenced it as pub_net in your service definition. Moreover, when you define the network as external it means that it should already be …

  8. Provide static IP to docker containers via docker-compose

    How can i scale up either of these containers using 'docker compose up -d --scale container-name=3' when i have allocated a static ip to the service?

  9. docker-compose how to define container scoped network like in …

    Jul 23, 2020 · I tried to replicate this behavior using docker-compose instead. But the networks: definition of docker-compose.yaml doesn't indicate something equivalent to the --network …

  10. How to use the host network, and any other user-defined network ...

    Nov 15, 2017 · 62 I want to connect two Docker containers, defined in a Docker-Compose file to each other (app and db). And one of them (app) should also be connected to the host network. The …