chore(deploy): stack ports as env variables; park-lab moves to art-docker-station
Build & push images / images (push) Successful in 2m56s
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.
This commit is contained in:
+13
-3
@@ -18,6 +18,13 @@ services:
|
||||
# Host network: Caddy listens on the host's :80 and proxies the host-net server on
|
||||
# 127.0.0.1:3000. (No `ports:` mapping — host mode publishes directly.)
|
||||
network_mode: host
|
||||
# PORTS (2026-10-08). On a booth nothing is set and the defaults apply (:80 → :3000). On a
|
||||
# SHARED host — the lab stack runs on art-docker-station, whose :80 is another service's —
|
||||
# the stack env sets HTTP_PORT / SERVER_PORT / VISION_HOST_PORT and every binding follows.
|
||||
# The Caddyfile reads these two as {$HTTP_PORT:80} / {$SERVER_PORT:3000}.
|
||||
environment:
|
||||
HTTP_PORT: ${HTTP_PORT:-80}
|
||||
SERVER_PORT: ${SERVER_PORT:-3000}
|
||||
# host mode is mutually exclusive with a named network; the base file doesn't attach proxy,
|
||||
# so nothing to null here (server does — see below).
|
||||
volumes:
|
||||
@@ -45,9 +52,12 @@ services:
|
||||
# host mode is mutually exclusive with a named network — detach the base file's `parking`
|
||||
# attachment (compose errors otherwise: "network_mode and networks cannot both be set").
|
||||
networks: !reset []
|
||||
# Listens on :3000 directly on the host (Caddy proxies it). Loopback to vision:
|
||||
# Listens on SERVER_PORT (default 3000) directly on the host (Caddy proxies it); the same
|
||||
# value is what net.ts advertises as the device push port. Loopback to vision on the host
|
||||
# port vision publishes (VISION_HOST_PORT, default 8089):
|
||||
environment:
|
||||
VISION_URL: http://127.0.0.1:8089
|
||||
PORT: ${SERVER_PORT:-3000}
|
||||
VISION_URL: http://127.0.0.1:${VISION_HOST_PORT:-8089}
|
||||
# NB: NO `sysctls:` here. net.ipv4.ping_group_range is a per-netns sysctl; under host net
|
||||
# there is no separate namespace, and runc REFUSES it ("not allowed in host network
|
||||
# namespace"). Reader liveness ping uses the HOST's setting instead — the booth host must
|
||||
@@ -95,7 +105,7 @@ services:
|
||||
environment:
|
||||
VISION_RECOGNIZER: fast_alpr
|
||||
ports:
|
||||
- "127.0.0.1:8089:8089"
|
||||
- "127.0.0.1:${VISION_HOST_PORT:-8089}:8089"
|
||||
# ≈2 months (see the server note): vision logs less — 20 MB × 10 = 200 MB ceiling.
|
||||
logging:
|
||||
driver: json-file
|
||||
|
||||
Reference in New Issue
Block a user