Skip to content

BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr

Update docker-compose.yml

aapanel.coma38b748128d2
diff --git a/docker-compose.yml b/docker-compose.yml
index 87241d8e..bc4b219c 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -137,6 +137,76 @@ services:
aliases:
- postfix
+
+ webmail-billionmail:
+ image: roundcube/roundcubemail:1.6.10-fpm-alpine
+ hostname: roundcube
+ depends_on:
+ - pgsql-billionmail
+ - dovecot-billionmail
+ - postfix-billionmail
+ volumes:
+ - ./webmail-data:/var/www/html
+ - ./conf/webmail/mime.types:/var/roundcube/config/mime.types
+ - ./conf/webmail:/var/roundcube/config
+ - ./conf/php:/usr/local/etc
+ - ./php-sock/:/var/run/
+ environment:
+ - TZ=${TZ}
+ - ROUNDCUBEMAIL_DB_TYPE=pgsql
+ - ROUNDCUBEMAIL_DB_HOST=pgsql
+ - ROUNDCUBEMAIL_DB_NAME=${DBNAME}
+ - ROUNDCUBEMAIL_DB_USER=${DBUSER}
+ - ROUNDCUBEMAIL_DB_PASSWORD=${DBPASS}
+ - ROUNDCUBEMAIL_DEFAULT_HOST=dovecot
+ - ROUNDCUBEMAIL_DEFAULT_PORT=${IMAP_PORT:-143}
+ - ROUNDCUBEMAIL_SMTP_SERVER=postfix
+ - ROUNDCUBEMAIL_SMTP_PORT=${SMTP_PORT:-25}
+ - ROUNDCUBEMAIL_REQUEST_PATH=/roundcube
+ restart: always
+ networks:
+ billionmail-network:
+ aliases:
+ - webmail
+
+ core-billionmail:
+ image: ghcr.io/aapanel/core:1.0
+ hostname: core-manage
+ depends_on:
+ - pgsql-billionmail
+ - webmail-billionmail
+ volumes:
+ - ./ssl:/etc/ssl/mail
+ - ./ssl-self-signed:/etc/ssl/ssl-self-signed
+ - ./conf/core/fail2ban/filter.d:/etc/fail2ban/filter.d
+ - ./conf/core/fail2ban/jail.d:/etc/fail2ban/jail.d
+ - ./logs/fail2ban:/var/log/fail2ban
+ - ./postgresql-socket:/opt/billionmail/postgresql-socket
+ - ./php-sock:/opt/billionmail/php-sock
+ - ./rspamd-data:/opt/billionmail/rspamd-data
+ - ./webmail-data:/opt/billionmail/webmail-data
+ - ./DBPASS_file.pl:/opt/billionmail/DBPASS_file.pl
+ - ./.env:/opt/billionmail/.env
+ - ./conf:/opt/billionmail/conf
+ - ./logs:/opt/billionmail/logs
+ - ./core:/opt/billionmail/core
+ - /var/run/docker.sock:/var/run/docker.sock:ro
+ environment:
+ - TZ=${TZ}
+ - FAIL2BAN_INIT=${FAIL2BAN_INIT:-y}
+ cap_add:
+ - NET_BIND_SERVICE
+ - NET_ADMIN
+ - NET_RAW
+ ports:
+ - "${HTTP_PORT:-80}:80"
+ - "${HTTPS_PORT:-443}:443"
+ restart: always
+ networks:
+ billionmail-network:
+ aliases:
+ - core
+
networks:
billionmail-network:
driver: bridge
@@ -144,3 +214,5 @@ networks:
com.docker.network.bridge.name: br-billionmail
ipam:
driver: default
+ config:
+ - subnet: ${IPV4_NETWORK:-172.66.1}.0/24