Basic reverse-proxy plus app service pattern.
Section: Production-Minded Compose Patterns
Proxy + app pattern
yaml
yaml
services:
proxy:
image: nginx:alpine
ports:
- "80:80"
depends_on:
app:
condition: service_started
app:
image: myapp:${APP_TAG:-latest}Explanation
Common for simple deployments on a single VM.
Learn the surrounding workflow
Compare similar commands or jump into common fixes when this command is part of a bigger troubleshooting path.
Related commands
Same sheet · prioritizing Production-Minded Compose Patterns
App with healthcheck and restart policy
Adds self-healing and health visibility to a service.
Backup sidecar pattern
Defines an operational backup task as a profile-gated service.
Watch files and sync/rebuild
Watches project files and applies sync or rebuild actions when configured.
Validate effective config
Checks whether the Compose config is valid without printing it.