--- services: foo: image: container_name: command: environment: env_file: ports: volumes: depends_on: healthcheck: restart: unless-stopped bar: image: bar/bar:latest container_name: bar command: environment: - TZ=Europe/Berlin env_file: ports: - "127.0.0.1:443:443" volumes: - ./volumes/bar:/bar depends_on: - foo restart: unless-stopped