Skip to content

Why mount $XDG_DATA_HOME and $XDG_CONFIG_HOME as caddy_... directories? #655

Answered by dunglas
goulashsoup asked this question in Q&A
Discussion options

You must be logged in to vote

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 be frankenphp_ 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.

Replies: 1 comment 5 replies

Comment options

You must be logged in to vote
5 replies
@goulashsoup
Comment options

@dunglas
Comment options

@goulashsoup
Comment options

@dunglas
Comment options

@goulashsoup
Comment options

Answer selected by maxhelias
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants