|
|
@ -139,7 +139,7 @@ services:
|
|
|
|
environment:
|
|
|
|
environment:
|
|
|
|
- MY_DOMAIN
|
|
|
|
- MY_DOMAIN
|
|
|
|
volumes:
|
|
|
|
volumes:
|
|
|
|
- ./Caddyfile:/etc/caddy/Caddyfile:ro
|
|
|
|
- ./Caddyfile:/etc/caddy/Caddyfile
|
|
|
|
- ./data:/data
|
|
|
|
- ./data:/data
|
|
|
|
- ./config:/config
|
|
|
|
- ./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
|
|
|
|
`docker exec -w /etc/caddy caddy caddy reload` reloads config
|
|
|
|
if you made changes and want them to take effect.
|
|
|
|
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
|
|
|
|
# Caddy more info and various configurations
|
|
|
|
|
|
|
|
|
|
|
|
##### Caddyfile structure:
|
|
|
|
##### Caddyfile structure:
|
|
|
|