19 lines
767 B
Text
19 lines
767 B
Text
|
services:
|
||
|
mailserver:
|
||
|
container_name: mailserver
|
||
|
image: docker.io/stalwartlabs/mail-server:v0.10.2
|
||
|
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
|