Created
June 2, 2023 10:59
-
-
Save schtobia/0d8ad9a56236f93a0f2191c418a05594 to your computer and use it in GitHub Desktop.
docker-compose Override for mailcow
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: '2.1' | |
services: | |
nginx-mailcow: | |
labels: | |
traefik.enable: true | |
traefik.http.routers.moo.entrypoints: websecure | |
traefik.http.routers.moo.middlewares: commonSSLHeaders | |
traefik.http.routers.moo.rule: Host(`${ADDITIONAL_SERVER_NAMES}`) | |
traefik.htttp.routers.moo.tls: true | |
traefik.http.routers.moo.tls.certresolver: acmelive | |
traefik.http.routers.moo.tls.domains[0].main: ${MAILCOW_HOSTNAME} | |
traefik.http.routers.moo.tls.domains[0].sans: ${ADDITIONAL_SAN} | |
traefik.http.services.moo.loadbalancer.server.port: ${HTTP_PORT} | |
traefik.docker.network: traefik_internal | |
networks: | |
traefik_internal: | |
certdumper: | |
image: humenius/traefik-certs-dumper | |
environment: | |
DOMAIN: ${MAILCOW_HOSTNAME},${ADDITIONAL_SAN} | |
healthcheck: | |
test: ["CMD", "/usr/bin/healthcheck"] | |
interval: 30s | |
timeout: 10s | |
retries: 5 | |
network_mode: none | |
volumes: | |
- ../traefik/acme:/traefik:ro | |
- ./data/assets/ssl/:/output:rw | |
clamd-mailcow: | |
networks: | |
traefik_internal: | |
aliases: | |
- clamav.schmidl.dev | |
networks: | |
traefik_internal: | |
external: true |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment