# Direct LAN access — layered on top of compose.local.yml by `make dev-lan`. # # For reaching the app from a machine that cannot be given a DNS record or a # hosts entry. Traefik routes on the Host header and a bare IP matches no # router, so the app container is published on a host port as well: # http://:${APP_PORT} is the whole app, dashboard, API and hooks. services: backend: ports: !override - "${APP_PORT:-8080}:8000" environment: # The address the instance gives out: the link a device's page shows a # screen and the one its emails carry. app.${DOMAIN} resolves on this host # only, so `make dev-lan` passes the published port on the LAN address. - FRONTEND_HOST=${LAN_URL:-http://app.${DOMAIN:-localhost}}