docker-compose link external container

less than 1 minute read

Create network

docker network create multi-host-network 

Start up external container in exist network

docker run -itd --network=multi-host-network db

Add external exist network in docker-compose

networks:
  default:
    external:
      name: multi-host-network
links:
  - db

Updated:

Comments