services:
frontend:
image: awesome/webapp
monitoring:
image: awesome/monitoring
backend:
depends_on:
- monitoring
links:
- "db:database"
extends:
service: frontend
db:
image: postgres