Commit 769df9b
authored
feat: configurable port via PORT environment variable (#36)
The listening port was hardcoded to 8080. While Docker port mapping
covers most cases, some orchestrators and reverse proxy setups prefer
the container to listen on a specific port.
Changes:
- entrypoint.sh reads PORT env var with default of 8080
- Dockerfile sets ENV PORT=8080 as the default
- Healthcheck uses ${PORT} so it works with custom ports
Backwards compatible: default behavior is unchanged (port 8080).
Tested with default port (8080) and custom port (PORT=9090),
both return 200 on /healthz.
Fixes #251 parent 61888e5 commit 769df9b
2 files changed
Lines changed: 6 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
36 | 37 | | |
37 | 38 | | |
38 | 39 | | |
39 | 40 | | |
40 | | - | |
| 41 | + | |
41 | 42 | | |
42 | 43 | | |
43 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
15 | 17 | | |
16 | 18 | | |
17 | | - | |
| 19 | + | |
0 commit comments