docker-compose build custom dockerfile code example
Example 1: docker compose build
web:
# build from Dockerfile
build: .
args: # Add build arguments
APP_HOME: app
Example 2: docker compose entrypoint
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost"]
interval: 1m30s
timeout: 10s
retries: 3
start_period: 40s