티스토리 뷰

728x90
docker-compose -f docker-compose-dev.yml up -d
docker-compose -f docker-compose-dev.yml up --force-recreate
docker-compose -f docker-compose-dev.yml up --build

docker-compose -f docker-compose-dev.yml down

docker-compose start
docker-compose start mysql

docker-compose restart
docker-compose restart redis

docker-compose stop
docker-compose stop wordpress

docker-compose down

docker-compose logs
docker-compose logs -f

docker-compose ps

docker-compose exec [컨테이너] [명령어]
docker-compose exec wordpress bash

docker-compose build
docker-compose build wordpress

docker-compose run [service] [command]
docker-compose run nginx bash

https://darrengwon.tistory.com/793

 

docker compose와 간단한 compose 문법

🐳 docker compose 설치 linux의 경우 docker compose를 별도로 설치해줘야 한다. https://docs.docker.com/compose/install/ sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-..

darrengwon.tistory.com

 

728x90
댓글