services:
frontend:
image: awesome/webapp
ports:
- "8000:5000"
monitoring:
depends_on:
- backend
extends:
service: frontend
- "8000:5010"
backend:
- "8000:5001"