Docker compose là gì?
Docker compose là gì?
Docker Compose định nghĩa và chạy ứng dụng nhiều container bằng tệp YAML (compose.yaml).
services:
web:
build: .
ports: ["8080:3000"]
environment: [DATABASE_URL=postgres://db/app]
depends_on:
db: { condition: service_healthy }
db:
image: postgres:17
volumes: [pgdata:/var/lib/postgresql/data]
healthcheck: { test: ["CMD-SHELL","pg_isready -U postgres"], interval: 5s, retries: 5 }
volumes: { pgdata: {} }
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.