compose: point caddy's /srv/homepage at the host dir, not the repo
The caddy container mounted the repo's shared/homepage (the static source) to /srv/homepage. But the deploy writes the generated files (status.json from the status checker, deployed.js from the deploy) to the host's /srv/homepage. So the container served the static files (200) but 404'd the generated ones. Mount the host's /srv/homepage instead, which holds both the static files (the deploy copies them) and the generated ones.
This commit is contained in:
1 parent
c7ced90aca
commit
5e6ba222cb
1 file changed
+5
-1
@@ -229,7 +229,11 @@ services:
|
|||||||
- /home/dank/Containers/caddy/Caddyfile:/etc/caddy/Caddyfile:ro
|
- /home/dank/Containers/caddy/Caddyfile:/etc/caddy/Caddyfile:ro
|
||||||
- /home/dank/Containers/caddy/data:/data
|
- /home/dank/Containers/caddy/data:/data
|
||||||
- /home/dank/Containers/caddy/config:/config
|
- /home/dank/Containers/caddy/config:/config
|
||||||
- ../shared/homepage:/srv/homepage:ro
|
# The homepage: the host's /srv/homepage. The deploy copies the static
|
||||||
|
# files there; the status checker writes status.json and the deploy
|
||||||
|
# writes deployed.js there. (Not the repo's shared/homepage, which
|
||||||
|
# lacks the generated files.)
|
||||||
|
- /srv/homepage:/srv/homepage:ro
|
||||||
depends_on:
|
depends_on:
|
||||||
- comfyui
|
- comfyui
|
||||||
- hermes
|
- hermes
|
||||||
|
|||||||
Reference in new issue
Block a user