fix kiwix 502: bind to port 8080 to match docker port mapping
kiwix-serve defaults to port 80 but the compose mapping is 8181:8080, causing a 502. Add --port 8080 to the serve command. https://claude.ai/code/session_012gDnantBmFTWZGCiKyjazx
This commit is contained in:
@@ -938,7 +938,7 @@ ${OLLAMA_VOLUME_LINE}
|
|||||||
volumes:
|
volumes:
|
||||||
- $KIWIX_DIR:/data
|
- $KIWIX_DIR:/data
|
||||||
entrypoint: ["sh", "-c"]
|
entrypoint: ["sh", "-c"]
|
||||||
command: ["ls /data/*.zim >/dev/null 2>&1 && exec kiwix-serve /data/*.zim || { echo 'No ZIM files in /data yet - sleeping. Add .zim files and restart kiwix.'; exec sleep infinity; }"]
|
command: ["ls /data/*.zim >/dev/null 2>&1 && exec kiwix-serve --port 8080 /data/*.zim || { echo 'No ZIM files in /data yet - sleeping. Add .zim files and restart kiwix.'; exec sleep infinity; }"]
|
||||||
|
|
||||||
# ── Gitea — Self-hosted Git ─────────────────────────────────────────────────
|
# ── Gitea — Self-hosted Git ─────────────────────────────────────────────────
|
||||||
gitea:
|
gitea:
|
||||||
|
|||||||
+1
-1
@@ -625,7 +625,7 @@ services:
|
|||||||
ports: ["0.0.0.0:8181:8080"]
|
ports: ["0.0.0.0:8181:8080"]
|
||||||
volumes: [$BASE/kiwix:/data]
|
volumes: [$BASE/kiwix:/data]
|
||||||
entrypoint: ["sh", "-c"]
|
entrypoint: ["sh", "-c"]
|
||||||
command: ["ls /data/*.zim >/dev/null 2>&1 && exec kiwix-serve /data/*.zim || { echo 'No ZIM files in /data yet - sleeping. Add .zim files and restart kiwix.'; exec sleep infinity; }"]
|
command: ["ls /data/*.zim >/dev/null 2>&1 && exec kiwix-serve --port 8080 /data/*.zim || { echo 'No ZIM files in /data yet - sleeping. Add .zim files and restart kiwix.'; exec sleep infinity; }"]
|
||||||
|
|
||||||
gitea:
|
gitea:
|
||||||
image: gitea/gitea:latest
|
image: gitea/gitea:latest
|
||||||
|
|||||||
Reference in New Issue
Block a user