2024-03-18 10:52:47 +01:00

29 lines
880 B
Django/Jinja

version: '3.7'
networks:
traefik:
external: true
services:
maildev:
container_name: maildev
image: maildev/maildev:{{ maildev_version | default("latest") }}
restart: unless-stopped
ports:
- "1080:1080"
- "1025:1025"
labels:
traefik.enable: true
traefik.docker.network: traefik
traefik.http.routers.maildev.rule: Host(`{{ maildev_domain }}`)
traefik.http.routers.maildev.tls: true
traefik.http.routers.maildev.tls.certresolver: letsencrypt
traefik.http.routers.maildev.entrypoints: websecure
{% if traefik_ipwhitelist is defined %}
traefik.http.routers.maildev.middlewares: "clientips@docker"
{% endif %}
traefik.http.services.maildev.loadbalancer.server.port: 1080
com.centurylinklabs.watchtower.enable: {{ maildev_watchtower_enable | default('true') }}
networks:
- traefik