2022-09-16 11:33:42 +02:00
|
|
|
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
|
2023-03-01 18:29:00 +01:00
|
|
|
{% if traefik_ipwhitelist is defined %}
|
|
|
|
traefik.http.routers.maildev.middlewares: "clientips@docker"
|
|
|
|
{% endif %}
|
2022-09-16 11:33:42 +02:00
|
|
|
traefik.http.services.maildev.loadbalancer.server.port: 1080
|
2024-03-18 10:52:47 +01:00
|
|
|
com.centurylinklabs.watchtower.enable: {{ maildev_watchtower_enable | default('true') }}
|
2022-09-16 11:33:42 +02:00
|
|
|
networks:
|
|
|
|
- traefik
|