Skip to content

Commit

Permalink
Update caddy/content.md with simplification of persisting data volume
Browse files Browse the repository at this point in the history
  • Loading branch information
BjoernLudwigPTB committed Nov 22, 2024
1 parent cfe84c2 commit d6d9b3b
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions caddy/content.md
Original file line number Diff line number Diff line change
Expand Up @@ -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`.

0 comments on commit d6d9b3b

Please sign in to comment.