x-common-elements: &common-elements build: context: . image: "{{ (container_registry.public, 'services/healthcheck') | path_join }}" restart: never env_file: - service.env volumes: - ./data/:/opt network_mode: host services: http: <<: *common-elements command: "/opt/http" matrix: <<: *common-elements command: "/opt/matrix" mail: <<: *common-elements command: "/opt/mail"