21 lines
684 B
YAML
21 lines
684 B
YAML
services:
|
|
mailserver:
|
|
image: docker.io/stalwartlabs/mail-server:v0.8.1
|
|
container_name: mailserver
|
|
restart: always
|
|
user: "{{ users['mailserver'] }}:{{ users['mailserver'] }}"
|
|
networks:
|
|
- 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
|
|
- {{ volumes['mailserver_tls_certificate_key_file'] }}:/etc/privkey.pem
|
|
- ./config.toml:/opt/stalwart-mail/etc/config.toml
|
|
|
|
networks:
|
|
mailserver:
|
|
name: mailserver
|