mirror of
https://github.com/lleene/dockerconfig.git
synced 2025-01-22 21:02:22 +01:00
Working autoconfig setup with SMTP relay
This commit is contained in:
parent
9c56e5359c
commit
3f24bbeca4
@ -2,8 +2,11 @@
|
|||||||
NGINX_HOST=""
|
NGINX_HOST=""
|
||||||
|
|
||||||
# GOOGLE DNS API TOKEN
|
# GOOGLE DNS API TOKEN
|
||||||
DNS_USERNAME=""
|
GDNS_USERNAME=""
|
||||||
DNS_PASSWORD=""
|
GDNS_PASSWORD=""
|
||||||
|
|
||||||
# COMMON DB PASSWORD
|
# COMMON DB PASSWORD
|
||||||
SQL_PSWD=""
|
SQL_PSWD=""
|
||||||
|
|
||||||
|
# SENDGRID Relay API Key
|
||||||
|
SENDGRID_APIKEY=""
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
## Start of configuration add by letsencrypt container
|
||||||
|
location ^~ /.well-known/acme-challenge/ {
|
||||||
|
auth_basic off;
|
||||||
|
auth_request off;
|
||||||
|
allow all;
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
try_files $uri =404;
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
## End of configuration add by letsencrypt container
|
||||||
add_header Referrer-Policy "no-referrer" always;
|
add_header Referrer-Policy "no-referrer" always;
|
||||||
add_header X-Content-Type-Options "nosniff" always;
|
add_header X-Content-Type-Options "nosniff" always;
|
||||||
add_header X-Download-Options "noopen" always;
|
add_header X-Download-Options "noopen" always;
|
||||||
|
@ -3,8 +3,8 @@ version: "3.8"
|
|||||||
|
|
||||||
networks:
|
networks:
|
||||||
internalnet:
|
internalnet:
|
||||||
# driver: bridge
|
driver: bridge
|
||||||
# enable_ipv6: false
|
enable_ipv6: false
|
||||||
|
|
||||||
|
|
||||||
x-mail: &defaults
|
x-mail: &defaults
|
||||||
@ -15,6 +15,8 @@ x-mail: &defaults
|
|||||||
|
|
||||||
services:
|
services:
|
||||||
hugo-html:
|
hugo-html:
|
||||||
|
networks:
|
||||||
|
- internalnet
|
||||||
container_name: hugo-html
|
container_name: hugo-html
|
||||||
build:
|
build:
|
||||||
context: ./config/hugo
|
context: ./config/hugo
|
||||||
@ -132,6 +134,7 @@ services:
|
|||||||
domainname: ${NGINX_HOST}
|
domainname: ${NGINX_HOST}
|
||||||
environment:
|
environment:
|
||||||
- POSTMASTER_ADDRESS=admin@${NGINX_HOST}
|
- POSTMASTER_ADDRESS=admin@${NGINX_HOST}
|
||||||
|
- RELAY_PASSWORD=${SENDGRID_APIKEY}
|
||||||
ports:
|
ports:
|
||||||
- "25:25"
|
- "25:25"
|
||||||
- "143:143"
|
- "143:143"
|
||||||
@ -189,15 +192,17 @@ services:
|
|||||||
image: "ghcr.io/dominickbrasileiro/ddnsgd"
|
image: "ghcr.io/dominickbrasileiro/ddnsgd"
|
||||||
environment:
|
environment:
|
||||||
- HOSTNAME=${NGINX_HOST}
|
- HOSTNAME=${NGINX_HOST}
|
||||||
- USERNAME=${DNS_USERNAME}
|
- USERNAME=${GDNS_USERNAME}
|
||||||
- PASSWORD=${DNS_PASSWORD}
|
- PASSWORD=${GDNS_PASSWORD}
|
||||||
|
|
||||||
autodiscover:
|
autodiscover:
|
||||||
|
<<: *defaults
|
||||||
image: monogramm/autodiscover-email-settings:latest
|
image: monogramm/autodiscover-email-settings:latest
|
||||||
container_name: autodiscover
|
container_name: autodiscover
|
||||||
environment:
|
environment:
|
||||||
- VIRTUAL_HOST=autodiscover.${NGINX_HOST},autoconfig.${NGINX_HOST}
|
- VIRTUAL_HOST=autodiscover.${NGINX_HOST},autoconfig.${NGINX_HOST}
|
||||||
- VIRTUAL_PORT=8000
|
- VIRTUAL_PORT=8000
|
||||||
|
- LETSENCRYPT_HOST=autodiscover.${NGINX_HOST},autoconfig.${NGINX_HOST}
|
||||||
- DOMAIN=${NGINX_HOST}
|
- DOMAIN=${NGINX_HOST}
|
||||||
- IMAP_HOST=mail.${NGINX_HOST}
|
- IMAP_HOST=mail.${NGINX_HOST}
|
||||||
- IMAP_PORT=993
|
- IMAP_PORT=993
|
||||||
|
@ -19,7 +19,14 @@ ENABLE_UPDATE_CHECK=1
|
|||||||
SSL_TYPE=letsencrypt
|
SSL_TYPE=letsencrypt
|
||||||
SPOOF_PROTECTION=1
|
SPOOF_PROTECTION=1
|
||||||
ENABLE_POP3=1
|
ENABLE_POP3=1
|
||||||
ENABLE_DNSBL=1
|
POSTSCREEN_ACTION=ignore
|
||||||
|
ENABLE_DNSBL=0
|
||||||
|
ENABLE_QUOTAS=0
|
||||||
|
|
||||||
|
RELAY_HOST=smtp.sendgrid.net
|
||||||
|
RELAY_PORT=587
|
||||||
|
RELAY_USER=apikey
|
||||||
|
|
||||||
|
|
||||||
## SQL Server Env
|
## SQL Server Env
|
||||||
POSTGRES_USER="pgadmin"
|
POSTGRES_USER="pgadmin"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user