mirror of
https://github.com/lleene/dockerconfig.git
synced 2025-01-23 05:12:20 +01:00
wip change acme html01 to dns01
This commit is contained in:
parent
dcf714e224
commit
e4d42e7f6f
@ -23,7 +23,7 @@ services:
|
|||||||
HUGO_BASE: lieuwe.${NGINX_HOST}
|
HUGO_BASE: lieuwe.${NGINX_HOST}
|
||||||
volumes:
|
volumes:
|
||||||
- hugo_data:/public:z
|
- hugo_data:/public:z
|
||||||
- nginx_certs:/etc/letsencrypt/live:z
|
- nginx_certs:/etc/letsencrypt/live:ro,z
|
||||||
|
|
||||||
hugo-site:
|
hugo-site:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
@ -52,6 +52,11 @@ services:
|
|||||||
- ./config/pg-init-scripts:/docker-entrypoint-initdb.d:ro,z
|
- ./config/pg-init-scripts:/docker-entrypoint-initdb.d:ro,z
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
|
healthcheck:
|
||||||
|
test: "pg_isready"
|
||||||
|
timeout: 45s
|
||||||
|
interval: 10s
|
||||||
|
retries: 10
|
||||||
|
|
||||||
nextcloud:
|
nextcloud:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
@ -74,7 +79,10 @@ services:
|
|||||||
- SMTP_NAME=admin@${NGINX_HOST}
|
- SMTP_NAME=admin@${NGINX_HOST}
|
||||||
- SMTP_PASSWORD=${SQL_PSWD}
|
- SMTP_PASSWORD=${SQL_PSWD}
|
||||||
depends_on:
|
depends_on:
|
||||||
- pgsqlserver
|
pgsqlserver:
|
||||||
|
condition: service_healthy
|
||||||
|
acme-companion:
|
||||||
|
condition: service_healthy
|
||||||
links:
|
links:
|
||||||
- pgsqlserver
|
- pgsqlserver
|
||||||
expose:
|
expose:
|
||||||
@ -105,7 +113,10 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "222:22"
|
- "222:22"
|
||||||
depends_on:
|
depends_on:
|
||||||
- pgsqlserver
|
pgsqlserver:
|
||||||
|
condition: service_healthy
|
||||||
|
acme-companion:
|
||||||
|
condition: service_healthy
|
||||||
links:
|
links:
|
||||||
- pgsqlserver
|
- pgsqlserver
|
||||||
|
|
||||||
@ -122,7 +133,10 @@ services:
|
|||||||
- ROUNDCUBEMAIL_SMTP_SERVER=tls://${NGINX_HOST}
|
- ROUNDCUBEMAIL_SMTP_SERVER=tls://${NGINX_HOST}
|
||||||
- ROUNDCUBEMAIL_DB_PASSWORD=${SQL_PSWD}
|
- ROUNDCUBEMAIL_DB_PASSWORD=${SQL_PSWD}
|
||||||
depends_on:
|
depends_on:
|
||||||
- pgsqlserver
|
pgsqlserver:
|
||||||
|
condition: service_healthy
|
||||||
|
acme-companion:
|
||||||
|
condition: service_healthy
|
||||||
links:
|
links:
|
||||||
- pgsqlserver
|
- pgsqlserver
|
||||||
expose:
|
expose:
|
||||||
@ -159,11 +173,12 @@ services:
|
|||||||
cap_add:
|
cap_add:
|
||||||
- NET_ADMIN
|
- NET_ADMIN
|
||||||
depends_on:
|
depends_on:
|
||||||
- ddnsgd
|
acme-companion:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
reverse-proxy:
|
reverse-proxy:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
image: nginxproxy/nginx-proxy
|
image: nginxproxy/nginx-proxy:1.2.3
|
||||||
container_name: nginx-proxy
|
container_name: nginx-proxy
|
||||||
environment:
|
environment:
|
||||||
- DEFAULT_EMAIL=admin@${NGINX_HOST}
|
- DEFAULT_EMAIL=admin@${NGINX_HOST}
|
||||||
@ -174,7 +189,7 @@ services:
|
|||||||
- nginx_html:/usr/share/nginx/html:z
|
- nginx_html:/usr/share/nginx/html:z
|
||||||
- nginx_conf:/etc/nginx/conf.d/:z
|
- nginx_conf:/etc/nginx/conf.d/:z
|
||||||
- nginx_dhparam:/etc/nginx/dhparam:z
|
- nginx_dhparam:/etc/nginx/dhparam:z
|
||||||
- nginx_certs:/etc/nginx/certs/:z
|
- nginx_certs:/etc/nginx/certs/:ro,z
|
||||||
- nginx_vhost:/etc/nginx/vhost.d/:z
|
- nginx_vhost:/etc/nginx/vhost.d/:z
|
||||||
- mail_html:/var/www/roundcube:z
|
- mail_html:/var/www/roundcube:z
|
||||||
- nextcloud_data:/var/www/nextcloud:z
|
- nextcloud_data:/var/www/nextcloud:z
|
||||||
@ -183,19 +198,32 @@ services:
|
|||||||
- ./config/nginx/header_default:/etc/nginx/vhost.d/default:z
|
- ./config/nginx/header_default:/etc/nginx/vhost.d/default:z
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:ro,z
|
- /var/run/docker.sock:/tmp/docker.sock:ro,z
|
||||||
depends_on:
|
depends_on:
|
||||||
- ddnsgd
|
ddnsgd:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
acme-companion:
|
acme-companion:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
image: nginxproxy/acme-companion
|
image: nginxproxy/acme-companion:2.2.3
|
||||||
container_name: nginx-proxy-acme
|
container_name: nginx-proxy-acme
|
||||||
|
environment:
|
||||||
|
- DEFAULT_EMAIL=admin@${NGINX_HOST}
|
||||||
volumes_from:
|
volumes_from:
|
||||||
- reverse-proxy
|
- reverse-proxy
|
||||||
volumes:
|
volumes:
|
||||||
- acme-state:/etc/acme.sh
|
- acme-state:/etc/acme.sh
|
||||||
|
- nginx_certs:/etc/nginx/certs:rw,z
|
||||||
- /var/run/docker.sock:/var/run/docker.sock:ro,z
|
- /var/run/docker.sock:/var/run/docker.sock:ro,z
|
||||||
depends_on:
|
depends_on:
|
||||||
- ddnsgd
|
- ddnsgd
|
||||||
|
healthcheck:
|
||||||
|
test: test -f /etc/nginx/certs/lieuwe.${NGINX_HOST}.key
|
||||||
|
interval: 60s
|
||||||
|
retries: 5
|
||||||
|
start_period: 5s
|
||||||
|
timeout: 10s
|
||||||
|
depends_on:
|
||||||
|
ddnsgd:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
ddnsgd:
|
ddnsgd:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
@ -206,6 +234,12 @@ services:
|
|||||||
- USERNAME=${GDNS_USERNAME}
|
- USERNAME=${GDNS_USERNAME}
|
||||||
- PASSWORD=${GDNS_PASSWORD}
|
- PASSWORD=${GDNS_PASSWORD}
|
||||||
- INTERVAL=9000
|
- INTERVAL=9000
|
||||||
|
healthcheck:
|
||||||
|
test: /usr/bin/nslookup ${NGINX_HOST}
|
||||||
|
interval: 30s
|
||||||
|
retries: 5
|
||||||
|
start_period: 2s
|
||||||
|
timeout: 10s
|
||||||
|
|
||||||
autodiscover:
|
autodiscover:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
@ -224,6 +258,9 @@ services:
|
|||||||
- SMTP_SOCKET=STARTTLS
|
- SMTP_SOCKET=STARTTLS
|
||||||
expose:
|
expose:
|
||||||
- "8000"
|
- "8000"
|
||||||
|
depends_on:
|
||||||
|
acme-companion:
|
||||||
|
condition: service_healthy
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
acme-state:
|
acme-state:
|
||||||
|
10
local.env
10
local.env
@ -1,3 +1,6 @@
|
|||||||
|
DEBUG=1
|
||||||
|
# LETSENCRYPT_TEST=true
|
||||||
|
|
||||||
## Docker Env
|
## Docker Env
|
||||||
PERMIT_DOCKER=network
|
PERMIT_DOCKER=network
|
||||||
|
|
||||||
@ -20,6 +23,8 @@ ENABLE_DNSBL=0
|
|||||||
ENABLE_QUOTAS=0
|
ENABLE_QUOTAS=0
|
||||||
ENABLE_POP3=0
|
ENABLE_POP3=0
|
||||||
|
|
||||||
|
|
||||||
|
## Email Relay
|
||||||
RELAY_HOST=smtp.sendgrid.net
|
RELAY_HOST=smtp.sendgrid.net
|
||||||
RELAY_PORT=587
|
RELAY_PORT=587
|
||||||
RELAY_USER=apikey
|
RELAY_USER=apikey
|
||||||
@ -29,6 +34,7 @@ RELAY_USER=apikey
|
|||||||
POSTGRES_USER="pgadmin"
|
POSTGRES_USER="pgadmin"
|
||||||
POSTGRES_INITDB_ARGS="--auth-host=scram-sha-256 --auth-local=scram-sha-256"
|
POSTGRES_INITDB_ARGS="--auth-host=scram-sha-256 --auth-local=scram-sha-256"
|
||||||
|
|
||||||
|
|
||||||
## Round Cube Env
|
## Round Cube Env
|
||||||
ROUNDCUBEMAIL_DB_TYPE=pgsql
|
ROUNDCUBEMAIL_DB_TYPE=pgsql
|
||||||
ROUNDCUBEMAIL_DB_NAME=roundcube
|
ROUNDCUBEMAIL_DB_NAME=roundcube
|
||||||
@ -36,12 +42,14 @@ ROUNDCUBEMAIL_DB_USER=roundcube
|
|||||||
ROUNDCUBEMAIL_SKIN=elastic
|
ROUNDCUBEMAIL_SKIN=elastic
|
||||||
ROUNDCUBEMAIL_ASPELL_DICTS=en
|
ROUNDCUBEMAIL_ASPELL_DICTS=en
|
||||||
|
|
||||||
|
|
||||||
## NGINX Reverse Proxy
|
## NGINX Reverse Proxy
|
||||||
NGINX_PROXY_CONTAINER=nginx-proxy
|
NGINX_PROXY_CONTAINER=nginx-proxy
|
||||||
LETSENCRYPT_RESTART_CONTAINER=true
|
LETSENCRYPT_RESTART_CONTAINER=true
|
||||||
|
ENABLE_IPV6=false
|
||||||
|
|
||||||
|
|
||||||
## GITEA Setup
|
## GITEA Setup
|
||||||
|
|
||||||
GITEA__server__HTTP_PORT = 3000
|
GITEA__server__HTTP_PORT = 3000
|
||||||
GITEA__server__DISABLE_SSH = false
|
GITEA__server__DISABLE_SSH = false
|
||||||
GITEA__server__SSH_PORT = 222
|
GITEA__server__SSH_PORT = 222
|
||||||
|
Loading…
x
Reference in New Issue
Block a user