Skip to content

Instantly share code, notes, and snippets.

@schtobia
Created June 2, 2023 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schtobia/0d8ad9a56236f93a0f2191c418a05594 to your computer and use it in GitHub Desktop.
Save schtobia/0d8ad9a56236f93a0f2191c418a05594 to your computer and use it in GitHub Desktop.
docker-compose Override for mailcow
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