From 1d178259faa86dafdea65cf19ab25c39e7b8260c Mon Sep 17 00:00:00 2001 From: sickprodigy Date: Fri, 21 Nov 2025 19:23:59 -0500 Subject: [PATCH] Add docker-compose configuration for RainLoop and mailserver services --- rainloop/docker-compose.yml | 44 +++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 rainloop/docker-compose.yml diff --git a/rainloop/docker-compose.yml b/rainloop/docker-compose.yml new file mode 100644 index 0000000..e8f2ee2 --- /dev/null +++ b/rainloop/docker-compose.yml @@ -0,0 +1,44 @@ +# docker webmail client +services: +# https://github.com/RainLoop/rainloop-webmail +# 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 \ No newline at end of file