public
nobgit
read
NobMail
Based on mailcow: dockerized
Languages
Repository composition by tracked source files.
PHP
49%
JavaScript
35%
HTML
9%
CSS
4%
Shell
2%
Python
1%
Lua
0%
Perl
0%
Ruby
0%
SCSS
0%
Create file
Wiki Documentation
Clone
https://nobgit.com/orgs/nobgit/nobmail.git
ssh://[email protected]:2222/orgs/nobgit/nobmail.git
Commit
Add Nginx HTTP listener, add build flags for containers, add Postfix data volume
e6b5ce44
docker-compose.yml | 14 +++++++++++++-
1 file changed, 13 insertions(+), 1 deletion(-)
Diff
diff --git a/docker-compose.yml b/docker-compose.yml
index bc6fc006..affa6364 100644
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -72,6 +72,7 @@ services:
rspamd-mailcow:
image: andryyy/mailcow-dockerized:rspamd
+ build: ./data/Dockerfiles/rspamd
depends_on:
- nginx-mailcow
volumes:
@@ -92,6 +93,7 @@ services:
php-fpm-mailcow:
image: andryyy/mailcow-dockerized:phpfpm
+ build: ./data/Dockerfiles/php-fpm
command: "php-fpm -d date.timezone=${TZ}"
depends_on:
- bind9-mailcow
@@ -115,6 +117,7 @@ services:
sogo-mailcow:
image: andryyy/mailcow-dockerized:sogo
+ build: ./data/Dockerfiles/sogo
depends_on:
- bind9-mailcow
environment:
@@ -137,6 +140,7 @@ services:
rmilter-mailcow:
image: andryyy/mailcow-dockerized:rmilter
+ build: ./data/Dockerfiles/rmilter
depends_on:
- bind9-mailcow
volumes:
@@ -152,6 +156,7 @@ services:
dovecot-mailcow:
image: andryyy/mailcow-dockerized:dovecot
+ build: ./data/Dockerfiles/dovecot
depends_on:
- bind9-mailcow
volumes:
@@ -181,11 +186,13 @@ services:
postfix-mailcow:
image: andryyy/mailcow-dockerized:postfix
+ build: ./data/Dockerfiles/postfix
depends_on:
- bind9-mailcow
volumes:
- ./data/conf/postfix:/opt/postfix/conf
- ./data/assets/ssl:/etc/ssl/mail/:ro
+ - postfix-vol-1:/var/spool/postfix
environment:
- DBNAME=${DBNAME}
- DBUSER=${DBUSER}
@@ -235,9 +242,12 @@ services:
- sogo-mailcow
- php-fpm-mailcow
image: nginx:mainline
- command: /bin/bash -c "envsubst < /etc/nginx/conf.d/listen.template > /etc/nginx/conf.d/listen.active && nginx -g 'daemon off;'"
+ command: /bin/bash -c "envsubst < /etc/nginx/conf.d/listen_plain.template > /etc/nginx/conf.d/listen_plain.active &&
+ envsubst < /etc/nginx/conf.d/listen_ssl.template > /etc/nginx/conf.d/listen_ssl.active &&
+ nginx -g 'daemon off;'"
environment:
- HTTPS_PORT=${HTTPS_PORT:-443}
+ - HTTP_PORT=${HTTP_PORT:-80}
volumes:
- ./data/web:/web:ro
- ./data/conf/rspamd/dynmaps:/dynmaps:ro
@@ -248,6 +258,7 @@ services:
dns_search: mailcow-network
ports:
- "${HTTPS_BIND:-0.0.0.0}:${HTTPS_PORT:-443}:${HTTPS_PORT:-443}"
+ - "${HTTP_BIND:-127.0.0.1}:${HTTP_PORT:-80}:${HTTP_PORT:-80}"
restart: always
networks:
mailcow-network:
@@ -269,3 +280,4 @@ volumes:
dkim-vol-1:
redis-vol-1:
rspamd-vol-1:
+ postfix-vol-1: