Why mount $XDG_DATA_HOME
and $XDG_CONFIG_HOME
as caddy_...
directories?
#655
-
The frankenphp image sets volumes:
- caddy_data:/data
- caddy_config:/config
@dunglas Can you check these questions? Maybe there is some improvement to clarify why mount Thank you very much for your time. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
This behavior is inherited from the official Caddy images: https://github.com/caddyserver/caddy-docker/blob/master/Dockerfile.tmpl#L42-L43 The volume's name is prefixed by The purpose of this volume is to store and share TLS certificates automatically generated by Caddy (including in prod mode). These certificates shouldn't be versioned in Git. |
Beta Was this translation helpful? Give feedback.
This behavior is inherited from the official Caddy images: https://github.com/caddyserver/caddy-docker/blob/master/Dockerfile.tmpl#L42-L43
The volume's name is prefixed by
caddy_
(it could befrankenphp_
now) because it contains data from the Caddy/FrankenPHP container (not from the DB container for instance).The purpose of this volume is to store and share TLS certificates automatically generated by Caddy (including in prod mode). These certificates shouldn't be versioned in Git.