Answer the question
In order to leave comments, you need to log in
How to add link to running docker?
Project starts:
webone:
image: ubuntu
container_name: webone
ports:
- 3000:80
webtwo:
image: ubuntu
container_name: webtwo
ports:
- 3001:80
nginx:
image: nginx
container_name: nginx
ports:
- 80:80
- 443:443
links:
- webone
- webtwo
Answer the question
In order to leave comments, you need to log in
if you change the contents of only one container from the project and do
docker-compose up -d in the folder,
then only the changed container will restart.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question