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