Update caddy/content.md with simplification of persisting data volume

This commit is contained in:
Bjoern Ludwig 2024-11-22 11:20:53 +01:00
parent cfe84c257e
commit d6d9b3b88d
No known key found for this signature in database
GPG Key ID: 37C6D67B8755979E
1 changed files with 0 additions and 3 deletions

View File

@ -144,10 +144,7 @@ services:
volumes:
caddy_data:
external: true
caddy_config:
```
Defining the data volume as [`external`](https://docs.docker.com/compose/compose-file/compose-file-v3/#external) makes sure `docker-compose down` does not delete the volume. You may need to create it manually using `docker volume create [project-name]_caddy_data`.
Graceful reloads can then be conducted via `docker compose exec -w /etc/caddy caddy caddy reload`.