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

21 lines
620 B
YAML
Raw Normal View History

2024-03-16 13:49:47 +01:00
services:
mailserver:
image: docker.io/stalwartlabs/mail-server:v0.7.3
2024-03-16 13:49:47 +01:00
container_name: mailserver
restart: always
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_https'] }}:443
2024-03-16 13:49:47 +01:00
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