08351a09bf
Build & push images / images (push) Successful in 2m56s
art-docker-station already serves :80, so the lab stack could not come up there.
HTTP_PORT (Caddy listen), SERVER_PORT (host-net server + advertised device push
port) and VISION_HOST_PORT (vision loopback publish) now flow from the stack env
through docker-compose.prod.yml; the Caddyfile reads {$HTTP_PORT:80} and
{$SERVER_PORT:3000}. Unset = the old :80 -> :3000 / 8089 layout, so booths are
unchanged. park-lab: server = art-docker-station, ports 8080 / 3100 / 8189.
Verified: caddy validate + adapt (with env -> :8080 / 127.0.0.1:3100, without
-> :80 / :3000) and docker compose config with the lab values. Wiki:
container-deployment §proxy, fleet-deployment-komodo §park-lab, log.
22 lines
1.4 KiB
Caddyfile
22 lines
1.4 KiB
Caddyfile
# Booth reverse proxy. `:80` matches ANY hostname/IP, so the booth is reachable as
|
|
# http://<booth-ip>/, http://localhost/, or http://parksystems.msai.al/ (the name pointed
|
|
# at the booth's IP via hosts/DNS on-site) — with no domain baked into any image. The SPA
|
|
# uses a relative /api base, so everything (HTTP + the /api/ws WebSocket, which Caddy
|
|
# upgrades automatically) just flows through to the server container.
|
|
#
|
|
# TLS later: replace `:80` with the real hostname (e.g. `parksystems.msai.al`), uncomment
|
|
# Caddy's :443 in docker-compose.prod.yml, and Caddy auto-provisions HTTPS. For a private
|
|
# CA / internal cert, use `tls /path/cert.pem /path/key.pem`.
|
|
#
|
|
# PORTS ARE ENV-DRIVEN (2026-10-08): HTTP_PORT (listen, default 80) and SERVER_PORT (upstream,
|
|
# default 3000) come from docker-compose.prod.yml, which takes them from the stack env. A booth
|
|
# leaves both unset and gets :80 → :3000 exactly as before. A SHARED host (the lab stack moved
|
|
# onto art-docker-station, whose :80 belongs to another service) sets HTTP_PORT=8080 etc. in the
|
|
# Komodo stack env — nothing here or in the image changes. See wiki/decisions/container-deployment.md.
|
|
:{$HTTP_PORT:80} {
|
|
encode gzip
|
|
# Host network (prod): the server runs on the host's net namespace (to reach the booth LAN /
|
|
# device VLAN), so reach it over loopback, not the compose service name `server`.
|
|
reverse_proxy 127.0.0.1:{$SERVER_PORT:3000}
|
|
}
|