Ajouter stalwart/docker-compose.yml
This commit is contained in:
parent
9089fdb1cc
commit
cc7f06b854
1 changed files with 54 additions and 0 deletions
54
stalwart/docker-compose.yml
Normal file
54
stalwart/docker-compose.yml
Normal file
|
|
@ -0,0 +1,54 @@
|
|||
services:
|
||||
stalwart-mail:
|
||||
image: stalwartlabs/stalwart:latest
|
||||
volumes:
|
||||
- /data/stalwart/mail:/opt/stalwart
|
||||
- /data/stalwart/data/:/data/
|
||||
- /data/stalwart/logs/:/logs/
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- 25:25
|
||||
- 587:587
|
||||
- 465:465
|
||||
- 143:143
|
||||
- 993:993
|
||||
- 4190:4190
|
||||
- 110:110
|
||||
- 995:995
|
||||
networks:
|
||||
web:
|
||||
ipv4_address: <fixed ip according to you docker network>
|
||||
stalwart:
|
||||
labels:
|
||||
- "traefik.enable=true"
|
||||
- "traefik.http.routers.stalwart.rule=Host(`stalwart.yourdomain.com`) || Host(`autoconfig.yourdomain.com`) || Host(`autodiscover.yourdomain.com`) || Host(`mta-sts.yourdomain.com`)"
|
||||
- "traefik.http.routers.stalwart.entrypoints=websecure"
|
||||
- "traefik.http.routers.stalwart.tls=true"
|
||||
- "traefik.http.services.stalwart.loadbalancer.server.port=8080"
|
||||
- "traefik.http.routers.stalwart.tls.certResolver=letsencrypt"
|
||||
- "traefik.docker.network=web"
|
||||
|
||||
- "homepage.group=Outils"
|
||||
- "homepage.name=Mails"
|
||||
- "homepage.icon=stalwart.png"
|
||||
- "homepage.href=https://stalwart.yourdomain.com"
|
||||
- "homepage.description=Stalwart"
|
||||
|
||||
|
||||
db:
|
||||
image: postgres
|
||||
restart: unless-stopped
|
||||
shm_size: 128mb
|
||||
environment:
|
||||
POSTGRES_USER: stalwart
|
||||
POSTGRES_PASSWORD: <strong password>
|
||||
POSTGRES_DB: stalwart
|
||||
volumes:
|
||||
- /data/stalwart/db:/var/lib/postgresql/data
|
||||
networks:
|
||||
- stalwart
|
||||
networks:
|
||||
web:
|
||||
external: true
|
||||
stalwart:
|
||||
external: false
|
||||
Loading…
Add table
Add a link
Reference in a new issue