Docker Compose
docker-compose
used for local dev/test automation with those YAML filesdocker-compose.yaml example version: '2'
#same as
#docker run -p 80:4000 -v $(pwd):/site bretfisher/jekyll-serve
services:
jekyll:
image: bretfisher/jekyll-serve
volumes:
- .:/site
ports:
- '80:4000'
.
current working directoryFor more exmaples: https://docs.docker.com/
docker-compose CLI
docker-compose +
up
setup volumes/networks and start all containersdown
stop all containeres and remove containers/volumes/networks:ro
used in volumes. read-only. (cannot change within container)if all your projects had a
Dockerfile
and docker-compose.yml
then new developer onboarding would be:git clone github.com/some/software
docker-compose-up
Boom! Done! Reference
この問題について(Docker Compose), 我々は、より多くの情報をここで見つけました https://velog.io/@skang6283/Docker-Composeテキストは自由に共有またはコピーできます。ただし、このドキュメントのURLは参考URLとして残しておいてください。
Collection and Share based on the CC Protocol