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

16 lines
618 B
YAML
Raw Normal View History

2024-03-16 13:49:47 +01:00
services:
mailserver:
container_name: mailserver
2024-10-02 18:50:21 +02:00
image: docker.io/stalwartlabs/mail-server:v0.10.2
2024-03-16 13:49:47 +01:00
restart: always
user: "{{ users['mailserver'] }}:{{ users['mailserver'] }}"
2024-03-16 13:49:47 +01:00
ports:
- "{{ ports['mailserver_smtp'] }}:25"
- {{ ports['mailserver_smtps'] }}:465
- {{ ports['mailserver_imaps'] }}:993
- {{ ports['mailserver_https'] }}:443
2024-03-16 13:49:47 +01:00
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