Files
homelab-infra/apps/mail-archiver/docker-compose.yml
T

31 lines
1019 B
YAML

version: "3.9"
services:
mail-archiver:
image: s1t5/mailarchiver
container_name: mail-archiver
restart: unless-stopped
environment:
TZ: Europe/Berlin
ConnectionStrings__DefaultConnection: ${MAILARCHIVER_DB_CONNECTION}
Authentication__Password: ${MAILARCHIVER_AUTH_PASSWORD}
volumes:
- /mnt/user/appdata/mailarchiver/data-protection-keys:/app/DataProtection-Keys
networks:
- backend_net
- frontend_net
security_opt:
- no-new-privileges:true
labels:
- "traefik.enable=true"
- "traefik.docker.network=frontend_net"
- "traefik.http.routers.mail-archiver.rule=Host(`mail.kaleschke.info`)"
- "traefik.http.routers.mail-archiver.entrypoints=websecure"
- "traefik.http.routers.mail-archiver.tls=true"
- "traefik.http.routers.mail-archiver.tls.certresolver=le"
- "traefik.http.services.mail-archiver.loadbalancer.server.port=5000"
networks:
backend_net:
external: true
frontend_net:
external: true