2024-03-16 13:49:47 +01:00
|
|
|
services:
|
|
|
|
mailserver:
|
2024-03-31 18:35:28 +02:00
|
|
|
image: docker.io/stalwartlabs/mail-server:v0.6.0
|
2024-03-16 13:49:47 +01:00
|
|
|
container_name: mailserver
|
|
|
|
restart: always
|
2024-04-06 21:43:34 +02:00
|
|
|
networks:
|
|
|
|
- mailserver
|
2024-03-16 13:49:47 +01:00
|
|
|
ports:
|
|
|
|
- "{{ ports['mailserver_smtp'] }}:25"
|
|
|
|
- {{ ports['mailserver_smtps'] }}:465
|
|
|
|
- {{ ports['mailserver_imaps'] }}:993
|
|
|
|
- {{ ports['mailserver_jmap'] }}:443
|
|
|
|
volumes:
|
|
|
|
- {{ volumes['mailserver_tls_certificate_file'] }}:/etc/fullchain.pem
|
|
|
|
- {{ volumes['mailserver_tls_certificate_key_file'] }}:/etc/privkey.pem
|
|
|
|
- {{ volumes['mailserver_datadir' ] }}:/opt/stalwart-mail
|
2024-04-06 21:43:34 +02:00
|
|
|
- ./common-server.toml:/opt/stalwart-mail/etc/common/server.toml
|
|
|
|
- ./common-tls.toml:/opt/stalwart-mail/etc/common/tls.toml
|
|
|
|
- ./common-tracing.toml:/opt/stalwart-mail/etc/common/tracing.toml
|
|
|
|
- ./directory-ldap.toml:/opt/stalwart-mail/etc/directory/ldap.toml
|
|
|
|
- ./store-postgresql.toml:/opt/stalwart-mail/etc/store/postgresql.toml
|
|
|
|
- ./smtp-listener.toml:/opt/stalwart-mail/etc/smtp/listener.toml
|
|
|
|
|
|
|
|
networks:
|
|
|
|
mailserver:
|
|
|
|
name: mailserver
|