You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.6 KiB
70 lines
1.6 KiB
--- |
|
version: "3.8" |
|
|
|
services: |
|
poste: |
|
image: analogic/poste.io:latest |
|
ports: |
|
- target: 25 |
|
published: 25 |
|
protocol: tcp |
|
mode: host |
|
- target: 110 |
|
published: 110 |
|
protocol: tcp |
|
mode: host |
|
- target: 143 |
|
published: 143 |
|
protocol: tcp |
|
mode: host |
|
- target: 465 |
|
published: 465 |
|
protocol: tcp |
|
mode: host |
|
- target: 587 |
|
published: 587 |
|
protocol: tcp |
|
mode: host |
|
- target: 993 |
|
published: 993 |
|
protocol: tcp |
|
mode: host |
|
- target: 995 |
|
published: 995 |
|
protocol: tcp |
|
mode: host |
|
environment: |
|
- "HTTPS=OFF" |
|
networks: |
|
- mail |
|
- traefik |
|
volumes: |
|
- poste:/data |
|
deploy: |
|
endpoint_mode: dnsrr |
|
placement: |
|
constraints: |
|
- "node.hostname == dm1.mills.io" |
|
labels: |
|
- "traefik.enable=true" |
|
- "traefik.docker.network=traefik" |
|
- "traefik.http.services.mail_poste.loadbalancer.server.port=80" |
|
- "traefik.http.routers.mail_poste.rule=Host(`mail.mills.io`)" |
|
- "traefik.http.routers.mail_poste.priority=2" |
|
- "traefik.http.routers.mail_autoconfig.rule=Host(`autoconfig.mills.io`)" |
|
- "traefik.http.routers.mail_autoconfig.priority=2" |
|
- "traefik.http.routers.mail_autodiscover.rule=Host(`autodiscover.mills.io`)" |
|
- "traefik.http.routers.mail_autodiscover.priority=2" |
|
restart_policy: |
|
condition: on-failure |
|
replicas: 1 |
|
|
|
networks: |
|
mail: |
|
external: true |
|
traefik: |
|
external: true |
|
|
|
volumes: |
|
poste: |
|
driver: local
|
|
|