docker-compose link external container
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
Link container outside docker-compose
links:
- db
Comments