vps/projects/mailserver/compose.yaml.mako

18 lines
767 B
Mako

services:
mailserver:
container_name: mailserver
image: docker.io/stalwartlabs/mail-server:v0.10.5
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