Hi,
The stuff is all Working, i just want to add an second Domain.
The .yml looks like that:
docker-compose.override.yml
networks:
proxy:
name: proxy
external: true
services:
certdumper:
image: ghcr.io/kereis/traefik-certs-dumper:latest
restart: unless-stopped
network_mode: none
command: --restart-containers mailcowdockerized-postfix-mailcow-1,mailcowdockerized-dovecot-mailcow-1
volumes:
# Kommentiere den Pfad aus je nach dem welche Anleitung du verwendet hast!
# Für Anleitung: "Traefik V3 Installation, Konfiguration und CrowdSec-Security"
#
# - /opt/containers/traefik-crowdsec-stack/data/traefik/certs:/traefik:ro
#
# Für Anleitung: "Traefik v2 + 3 – Reverse-Proxy mit CrowdSec im Stack einrichten"
# - /opt/containers/traefik-crowdsec-stack/traefik:/traefik:ro
- /var/run/docker.sock:/var/run/docker.sock:ro
- ./data/assets/ssl:/output:rw
environment:
DOMAIN: ${MAILCOW_HOSTNAME}
ACME_FILE_PATH: "/traefik/tls_letsencrypt.json"
healthcheck:
test: ["CMD", "/usr/bin/healthcheck"]
interval: 30s
timeout: 10s
retries: 5
nginx-mailcow:
networks:
proxy:
labels:
traefik.docker.network: proxy
traefik.enable: "true"
traefik.http.services.nginx-mailcow.loadbalancer.server.port: "80"
traefik.http.routers.nginx-mailcow-euredomain_de-secure.entrypoints: websecure
traefik.http.routers.nginx-mailcow-euredomain_de-secure.rule: "Host(`mail.euredomain.de`) || Host(`autodiscover.euredomain.de`) || Host(`autoconfig.euredomain.de`) || Host(`mta-sts.euredomain.de`) || Host(`imap.euredomain.de`) || Host(`pop3.euredomain.de`) || Host(`smtp.euredomain.de`)"
traefik.http.routers.nginx-mailcow-euredomain_de-secure.service: nginx-mailcow
traefik.http.routers.nginx-mailcow-euredomain_de-secure.tls: "true"
traefik.http.routers.nginx-mailcow-euredomain_de-secure.tls.certresolver: tls_resolver
traefik.http.routers.nginx-mailcow-euredomain_de-unsecure.entrypoints: web
traefik.http.routers.nginx-mailcow-euredomain_de-unsecure.rule: "Host(`mail.euredomain.de`) || Host(`autodiscover.euredomain.de`) || Host(`autoconfig.euredomain.de`) || Host(`mta-sts.euredomain.de`) || Host(`imap.euredomain.de`) || Host(`pop3.euredomain.de`) || Host(`smtp.euredomain.de`)"
can i just add the Domain and Sub-Domain in the same line like the first one?