ESPHome

Running on a different network

name: esphome
services:
    esphome:
        dns:
          - 192.168.1.1 # dns in the network with the ESPHome devices
        # extra_hosts: # this is not necessary if the DNS can answer queries for the correct network/host
        #   - "esphome-web-69f66a.local:192.168.1.206"
        ports:
            - 6052:6052
        environment:
            - ESPHOME_DASHBOARD_USE_PING=true
            - TZ=America/Vancouver
        volumes:
            - esphome-config:/config
        stdin_open: true
        tty: true
        image: ghcr.io/esphome/esphome

volumes:
    esphome-config: