2024-03-16 13:49:47 +01:00
|
|
|
services:
|
|
|
|
mailserver:
|
|
|
|
container_name: mailserver
|
2024-07-05 12:00:25 +02:00
|
|
|
image: docker.io/stalwartlabs/mail-server:v0.8.4
|
2024-03-16 13:49:47 +01:00
|
|
|
restart: always
|
2024-05-24 23:14:59 +02:00
|
|
|
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
|
2024-05-02 22:49:00 +02:00
|
|
|
- {{ ports['mailserver_https'] }}:443
|
2024-03-16 13:49:47 +01:00
|
|
|
volumes:
|
2024-07-03 12:40:23 +02:00
|
|
|
- {{ 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
|