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