2024-10-14 16:25:39 +02:00
|
|
|
services:
|
|
|
|
mailserver:
|
|
|
|
container_name: mailserver
|
2024-10-16 18:44:40 +02:00
|
|
|
image: docker.io/stalwartlabs/mail-server:v0.10.5
|
2024-10-14 16:25:39 +02:00
|
|
|
network_mode: pasta:-a,${env['pasta']['mailserver']['ipv4']},-a,${env['pasta']['mailserver']['ipv6']}
|
|
|
|
restart: always
|
|
|
|
user: "${env['users']['mailserver']}:${env['users']['mailserver']}"
|
|
|
|
cap_add:
|
|
|
|
- NET_BIND_SERVICE
|
|
|
|
ports:
|
|
|
|
- "${env['ports']['mailserver_smtp']}:25"
|
|
|
|
- ${env['ports']['mailserver_smtps']}:465
|
|
|
|
- ${env['ports']['mailserver_imaps']}:993
|
|
|
|
- ${env['ports']['mailserver_https']}:443
|
|
|
|
volumes:
|
|
|
|
- ${env['certs']['mailserver']['cert']}:/etc/fullchain.pem:ro
|
|
|
|
- ${env['certs']['mailserver']['pkey']}:/etc/privkey.pem:ro
|
|
|
|
- ${env['volumes']['mailserver']['datadir']}:/opt/stalwart-mail
|