diff --git a/docker-compose.override.yaml.example b/docker-compose.override.yaml.example new file mode 100644 index 00000000..6503dc3b --- /dev/null +++ b/docker-compose.override.yaml.example @@ -0,0 +1,33 @@ +# Local overrides — copy to docker-compose.override.yaml in the repo root. +# Compose automatically merges this with docker-compose.yaml. +# +# cp docker/docker-compose.override.yaml.example docker-compose.override.yaml +# +# Volumes listed here are APPENDED to the base file's volumes. +# Scalar values (environment, image, etc.) are REPLACED. +services: + chatmail: + volumes: + ## Data paths — bind-mount to host directories for easy access/backup. + ## Uncomment and adjust paths as needed. These override the named + ## volumes in the base docker-compose.yaml. + # - ./data/chatmail:/home/vmail + # - ./data/chatmail-dkimkeys:/etc/dkimkeys + # - ./data/chatmail-acme:/var/lib/acme + + ## Or mount data from an existing bare-metal install. + ## Note: DKIM key ownership is fixed automatically on startup + ## (the host's opendkim UID may differ from the container's). + # - /home/vmail:/home/vmail + # - /etc/dkimkeys:/etc/dkimkeys + # - /var/lib/acme:/var/lib/acme + + ## Mount your own chatmail.ini (skips auto-generation): + # - ./chatmail.ini:/etc/chatmail/chatmail.ini + + ## Custom website: + # - ./custom/www:/opt/chatmail-www + + ## Debug — mount scripts from the repo for live editing: + # - ./docker/files/setup_chatmail_docker.sh:/setup_chatmail_docker.sh + # - ./docker/files/entrypoint.sh:/entrypoint.sh diff --git a/example.env b/example.env new file mode 100644 index 00000000..ba62c93c --- /dev/null +++ b/example.env @@ -0,0 +1,7 @@ +MAIL_DOMAIN="chat.example.com" + +# CMDEPLOY_STAGES - default: "configure,activate". Set to "install,configure,activate" to force full reinstall. +# CMDEPLOY_STAGES="configure,activate" + +# Skip acmetool when using an external certificate manager (e.g. Traefik, Caddy). +# CHATMAIL_NOACME="True"