Docker Compose - vvonha/NaverAPI GitHub Wiki
Docker Compose?
λ€μ€ 컨ν μ΄λ λ컀 μ ν리μΌμ΄μ μ μ μνκ³ λμνκ² ν΄μ£Όλ ν΄μ΄λ€.
YAML νμΌλ‘ μμ±λμ΄μ§λ©° μμ±λ yaml νμΌμ μ½μ΄ λ€μ¬
λͺ¨λ μλΉμ€μ λν μμ± λ° μμμ νλμ λͺ λ Ήμ΄λ‘ μ€νν μ μλ€.
Docker Desktop - Setting - Experimental Features - Use Docker Compose V2
Check Versions
Images
Yaml file
# docker-compose.yml version: '3' services: flask: build: ./flask container_name: flask image: "flask:test" ports: - "5000:5000" networks: - backend nginx: build: ./nginx container_name: nginx image: "nginx:test" ports: - "80:80" networks: - backend networks: backend: driver: bridge # indent = 2
Command
docker compose up
docker compose down
References
λ컀 μ»΄ν¬μ¦κ° 무μμ΄κ³ μ΄λ»κ² μ€ννλ κ²μΌκΉ