services:
frontend:
image: awesome/webapp
networks:
- front-tier
- back-tier
monitoring:
image: awesome/monitoring
- admin
backend:
back-tier:
aliases:
- database
admin:
- mysql
extends:
service: frontend
links:
- "db:database"
db:
image: postgres
front-tier: