|
|
@@ -20,6 +20,14 @@ services:
|
|
|
env_file:
|
|
|
- .env
|
|
|
environment:
|
|
|
+ # PIN container's listening port to 3000. `PORT` in .env is the HOST
|
|
|
+ # port for the mapping above ("${PORT:-13000}:3000") — it must NOT reach
|
|
|
+ # Next.js inside the container, or `next start` reads PORT=13000 and
|
|
|
+ # listens on the wrong port, so both the 13000->3000 mapping and the
|
|
|
+ # HEALTHCHECK (which probes :3000) miss it → container goes unhealthy
|
|
|
+ # and the WebUI is unreachable. `environment` overrides `env_file`, so
|
|
|
+ # this neutralizes the PORT leaked by env_file below.
|
|
|
+ - PORT=3000
|
|
|
- OUTPUT_DIR=${OUTPUT_DIR:-/app/output}
|
|
|
- OUTPUT_RETENTION_DAYS=${OUTPUT_RETENTION_DAYS:-30}
|
|
|
- TZ=${TZ:-Asia/Shanghai}
|