vps/roles/mailserver/templates/docker-compose.yaml

15 lines
617 B
YAML

services:
mailserver:
container_name: mailserver
image: docker.io/stalwartlabs/mail-server:v0.9.0
restart: always
user: "{{ users['mailserver'] }}:{{ users['mailserver'] }}"
ports:
- "{{ ports['mailserver_smtp'] }}:25"
- {{ ports['mailserver_smtps'] }}:465
- {{ ports['mailserver_imaps'] }}:993
- {{ ports['mailserver_https'] }}:443
volumes:
- {{ volumes['mailserver_tls_certificate_file'] }}:/etc/fullchain.pem:ro
- {{ volumes['mailserver_tls_certificate_key_file'] }}:/etc/privkey.pem:ro
- {{ volumes['mailserver_datadir'] }}:/opt/stalwart-mail