diff --git a/caddy_v2/readme.md b/caddy_v2/readme.md index 426b93e..a1ae28c 100644 --- a/caddy_v2/readme.md +++ b/caddy_v2/readme.md @@ -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:*
+caddy can complain about formatting of the `Caddyfile`
+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: