This commit is contained in:
DoTheEvo 2022-08-13 13:37:52 +02:00
parent efad7c8f4f
commit b39c008f8e
1 changed files with 7 additions and 1 deletions

View File

@ -139,7 +139,7 @@ services:
environment:
- MY_DOMAIN
volumes:
- ./Caddyfile:/etc/caddy/Caddyfile:ro
- ./Caddyfile:/etc/caddy/Caddyfile
- ./data:/data
- ./config:/config
@ -284,6 +284,12 @@ There's also other possible issues, like bad port forwarding towards docker host
`docker exec -w /etc/caddy caddy caddy reload` reloads config
if you made changes and want them to take effect.
*extra info2:*<br>
caddy can complain about formatting of the `Caddyfile`<br>
this executed on the host will let caddy overwrite the Caddyfile with
correct formatting
`docker exec -w /etc/caddy caddy caddy fmt -overwrite`
# Caddy more info and various configurations
##### Caddyfile structure: