Docker-Compose: Ports auf 8090/8091, Platzhalter fuer API.md-Mount
Der web-Container startete nicht: html/ wird read-only gemountet, deshalb konnte Docker den Mountpoint fuer das nachfolgende File-Bind-Mount von API.md nicht anlegen (mknod auf read-only filesystem). Ein Platzhalter html/API.md im Repo loest das, ohne das :ro aufgeben zu muessen. Ausserdem die Host-Ports auf 8090 (web) und 8091 (api) verschoben. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
parent
37693a09a1
commit
33ea00aefe
2 changed files with 10 additions and 2 deletions
|
|
@ -9,7 +9,7 @@ services:
|
||||||
# - ./status.txt:/status.txt:ro
|
# - ./status.txt:/status.txt:ro
|
||||||
working_dir: /app
|
working_dir: /app
|
||||||
ports:
|
ports:
|
||||||
- "8080:8080"
|
- "8091:8080"
|
||||||
environment:
|
environment:
|
||||||
MONITOR_DB_PATH: /app/data/monitor.sqlite
|
MONITOR_DB_PATH: /app/data/monitor.sqlite
|
||||||
MONITOR_ADMIN_API_KEY: ${MONITOR_ADMIN_API_KEY:-dev-admin-key}
|
MONITOR_ADMIN_API_KEY: ${MONITOR_ADMIN_API_KEY:-dev-admin-key}
|
||||||
|
|
@ -26,9 +26,11 @@ services:
|
||||||
image: nginx:alpine
|
image: nginx:alpine
|
||||||
volumes:
|
volumes:
|
||||||
- ./html:/usr/share/nginx/html:ro
|
- ./html:/usr/share/nginx/html:ro
|
||||||
|
# Ueberlagert den Platzhalter html/API.md - der muss existieren, weil in
|
||||||
|
# einem read-only gemounteten Verzeichnis kein Mountpoint angelegt werden kann.
|
||||||
- ./API.md:/usr/share/nginx/html/API.md:ro
|
- ./API.md:/usr/share/nginx/html/API.md:ro
|
||||||
ports:
|
ports:
|
||||||
- "8081:80"
|
- "8090:80"
|
||||||
|
|
||||||
# Fuehrt die Node-basierten Frontend-Tests (tests/frontend/) aus. Node/npm sind nur im
|
# Fuehrt die Node-basierten Frontend-Tests (tests/frontend/) aus. Node/npm sind nur im
|
||||||
# Container noetig, nicht auf dem Host (analog zum api-Service mit PHP/Composer).
|
# Container noetig, nicht auf dem Host (analog zum api-Service mit PHP/Composer).
|
||||||
|
|
|
||||||
6
html/API.md
Normal file
6
html/API.md
Normal file
|
|
@ -0,0 +1,6 @@
|
||||||
|
Platzhalter.
|
||||||
|
|
||||||
|
Diese Datei wird im web-Container per Bind-Mount durch die echte API.md aus dem
|
||||||
|
Repo-Wurzelverzeichnis ueberlagert (siehe docker-compose.yml). Sie muss im Repo
|
||||||
|
existieren, weil html/ read-only in den Container gemountet wird und Docker den
|
||||||
|
Mountpoint dort sonst nicht anlegen kann.
|
||||||
Loading…
Add table
Reference in a new issue