services: evcc: image: evcc/evcc:latest container_name: EVCC healthcheck: test: ["CMD-SHELL", "nc -z 127.0.0.1 7070 || exit 1"] interval: 10s timeout: 5s retries: 3 start_period: 90s ports: - 7070:7070/tcp - 8887:8887/tcp - 9522:9522/udp - 4712:4712/tcp volumes: - /volume1/docker/evcc/config/evcc.yaml:/etc/evcc.yaml:rw - /volume1/docker/evcc/root:/root/.evcc:rw - /volume1/docker/evcc/machineid:/etc/machine-id:rw - /volume1/docker/evcc/machinebus:/var/lib/dbus/machine-id:rw network_mode: host restart: on-failure:5