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