
docker-compose
·
System Engineering/Kubernetes
docker-compose 파일에 동시에 구성할 여러 컨테이너를 기록해두고 docker-compose up이라는 명령어로 동시에 켬 그러면 알아서 이미지 다운받고 셋업해주고 그럼. 이게 cat docker-compose.yml 파일임 version: '3.3' services: # WebServer config webserver: build: . ports: - "80:80" depends_on: - redis # Redis config redis: image: redis:4.0 여기서 웹서버가 172.20.0.3:80이라 그래서 저걸로 접속해봤는데 안되더라고 localhost로 접속하니까 됐음 그니까 뭔가 네트워크 설정이 일반적이지 않음. 가동중인 컨테이너 상태 확인할 때는 docker-compose ..