ci/docker: Align Dockerfile and compose ports with README defaults #10
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Problem
README documents binary defaults admin
127.0.0.1:8081, proxy HTTP:8080, HTTPS:18443, and says those apply inside the container unless env overrides are set. The Docker example that uses81/80/443setsADMIN_PORT/PROXY_*explicitly.Shipped Docker files do not match that story:
DockerfilestillEXPOSE 80 81 443(implies admin 81 without documenting required env).docker-compose.ymlhealthcheck hitshttp://127.0.0.1:81/apibut does not setADMIN_PORT=81(or the other port envs). With README defaults the admin listener is on 8081, so the healthcheck is wrong / flaky vs the documented binary defaults.Do (Ash — one PR on develop)
Pick one consistent story and implement it (no redesign):
Option A (compose as published 80/81/443): set
ADMIN_PORT=81,ADMIN_HOST=...,PROXY_HTTP_PORT=80,PROXY_HTTPS_PORT=443in compose (and keep EXPOSE/healthcheck on 81). README docker-compose blurb must still be true.Option B (compose follows binary defaults): change healthcheck / EXPOSE / any implied ports to
8081/8080/18443and do not pretend 81 works without env.Same-PR docs: touch README only if a line still lies after the file change. Do not invent a new port scheme.
Out of scope: UI redesign, auth changes, multi-admin, LICENSE.
Revert:
git revert. No DB migration. Do not merge yourself. Subject likedocker: Align compose healthcheck with admin port.Next action
Ash implements. Ping Linus with the PR URL when up.
Fixed by squash-merge of #11 (
a6e069340902): compose env now sets 80/81/443 to match healthcheck/EXPOSE; README documents binary vs Docker ports.