Add docker-compose configuration for Rainloop and Mailserver services
This commit is contained in:
43
mailserver/docker-compose.yml
Normal file
43
mailserver/docker-compose.yml
Normal file
@@ -0,0 +1,43 @@
|
|||||||
|
services:
|
||||||
|
|
||||||
|
# Full example :
|
||||||
|
# https://github.com/hardware/mailserver/blob/master/docker-compose.sample.yml
|
||||||
|
rainloop:
|
||||||
|
image: hardware/rainloop
|
||||||
|
container_name: rainloop
|
||||||
|
volumes:
|
||||||
|
- /docker-containers/rainloop:/rainloop/data
|
||||||
|
depends_on:
|
||||||
|
- mailserver
|
||||||
|
mailserver:
|
||||||
|
image: docker.io/mailserver/docker-mailserver:latest
|
||||||
|
container_name: mailserver
|
||||||
|
# If the FQDN for your mail-server is only two labels (eg: example.com),
|
||||||
|
# you can assign this entirely to `hostname` and remove `domainname`.
|
||||||
|
hostname: mail
|
||||||
|
domainname: example.com
|
||||||
|
env_file: mailserver.env
|
||||||
|
# More information about the mail-server ports:
|
||||||
|
# https://docker-mailserver.github.io/docker-mailserver/edge/config/security/understanding-the-ports/
|
||||||
|
# To avoid conflicts with yaml base-60 float, DO NOT remove the quotation marks.
|
||||||
|
ports:
|
||||||
|
- "25:25" # SMTP (explicit TLS => STARTTLS)
|
||||||
|
- "143:143" # IMAP4 (explicit TLS => STARTTLS)
|
||||||
|
- "465:465" # ESMTP (implicit TLS)
|
||||||
|
- "587:587" # ESMTP (explicit TLS => STARTTLS)
|
||||||
|
- "993:993" # IMAP4 (implicit TLS)
|
||||||
|
volumes:
|
||||||
|
- /docker-containers/mailserver:/var/
|
||||||
|
# - ./docker-data/dms/mail-data/:/var/mail/
|
||||||
|
# - ./docker-data/dms/mail-state/:/var/mail-state/
|
||||||
|
# - ./docker-data/dms/mail-logs/:/var/log/mail/
|
||||||
|
# - ./docker-data/dms/config/:/tmp/docker-mailserver/
|
||||||
|
- /etc/localtime:/etc/localtime:ro
|
||||||
|
restart: always
|
||||||
|
stop_grace_period: 1m
|
||||||
|
cap_add:
|
||||||
|
- NET_ADMIN
|
||||||
|
healthcheck:
|
||||||
|
test: "ss --listening --tcp | grep -P 'LISTEN.+:smtp' || exit 1"
|
||||||
|
timeout: 3s
|
||||||
|
retries: 0
|
||||||
Reference in New Issue
Block a user