mirror of
https://github.com/chatmail/relay.git
synced 2026-05-12 00:54:37 +00:00
- remove all traces of CHATMAIL_NOACME; purge certwatch service - introduce TLS_EXTERNAL_CERT_AND_KEY as per new logic
50 lines
2.1 KiB
Plaintext
50 lines
2.1 KiB
Plaintext
# 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.
|
|
#
|
|
# --- External TLS certificates ---
|
|
# Use when certs are managed outside the container (certbot, acmetool, Traefik, ...).
|
|
# Mount the cert files and set TLS_EXTERNAL_CERT_AND_KEY to the in-container paths.
|
|
# Changed certs are picked up automatically (inotify via tls-cert-reload.path).
|
|
#
|
|
# Host acmetool (bare-metal migration):
|
|
# volumes: - /var/lib/acme/live:/var/lib/acme/live:ro
|
|
# environment:
|
|
# TLS_EXTERNAL_CERT_AND_KEY: "/var/lib/acme/live/${MAIL_DOMAIN}/fullchain /var/lib/acme/live/${MAIL_DOMAIN}/privkey"
|
|
#
|
|
# Traefik certs-dumper (see docker/docker-compose-traefik.yaml):
|
|
# volumes: - traefik-certs:/certs:ro
|
|
# environment:
|
|
# TLS_EXTERNAL_CERT_AND_KEY: "/certs/${MAIL_DOMAIN}/certificate.crt /certs/${MAIL_DOMAIN}/privatekey.key"
|
|
|
|
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
|