mirror of
https://github.com/lleene/dockerconfig.git
synced 2025-01-22 21:02:22 +01:00
Cleanup env and security tokens
This commit is contained in:
parent
f2c84d08cd
commit
57f470798f
9
.env.example
Normal file
9
.env.example
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
# SET HOST NAME
|
||||||
|
NGINX_HOST=""
|
||||||
|
|
||||||
|
# GOOGLE DNS API TOKEN
|
||||||
|
DNS_USERNAME=""
|
||||||
|
DNS_PASSWORD=""
|
||||||
|
|
||||||
|
# COMMON DB PASSWORD
|
||||||
|
SQL_PSWD=""
|
@ -1,5 +1,6 @@
|
|||||||
version: "3.8"
|
version: "3.8"
|
||||||
|
|
||||||
|
|
||||||
networks:
|
networks:
|
||||||
internalnet:
|
internalnet:
|
||||||
driver: bridge
|
driver: bridge
|
||||||
@ -19,6 +20,7 @@ services:
|
|||||||
image: postgres:15
|
image: postgres:15
|
||||||
environment:
|
environment:
|
||||||
- POSTGRES_MULTIPLE_DATABASES=gitea, roundcube
|
- POSTGRES_MULTIPLE_DATABASES=gitea, roundcube
|
||||||
|
- POSTGRES_PASSWORD=${SQL_PSWD}
|
||||||
volumes:
|
volumes:
|
||||||
- sql_data:/var/lib/postgresql/data/:z
|
- sql_data:/var/lib/postgresql/data/:z
|
||||||
- ./config/pg-init-scripts:/docker-entrypoint-initdb.d:ro
|
- ./config/pg-init-scripts:/docker-entrypoint-initdb.d:ro
|
||||||
@ -32,10 +34,9 @@ services:
|
|||||||
image: gitea/gitea
|
image: gitea/gitea
|
||||||
restart: always
|
restart: always
|
||||||
environment:
|
environment:
|
||||||
- VIRTUAL_HOST=git.zathura.leene.dev
|
- VIRTUAL_HOST=git.${NGINX_HOST}
|
||||||
- VIRTUAL_PORT=3000
|
- VIRTUAL_PORT=3000
|
||||||
- LETSENCRYPT_HOST=git.zathura.leene.dev
|
- LETSENCRYPT_HOST=git.${NGINX_HOST}
|
||||||
- LETSENCRYPT_EMAIL=admin@zathura.leene.dev
|
|
||||||
volumes:
|
volumes:
|
||||||
- gitea_data:/data:z
|
- gitea_data:/data:z
|
||||||
- /etc/timezone:/etc/timezone:ro
|
- /etc/timezone:/etc/timezone:ro
|
||||||
@ -54,11 +55,13 @@ services:
|
|||||||
image: roundcube/roundcubemail:latest-fpm
|
image: roundcube/roundcubemail:latest-fpm
|
||||||
container_name: roundcubemail
|
container_name: roundcubemail
|
||||||
environment:
|
environment:
|
||||||
- ROUNDCUBEMAIL_DB_HOST=pgsqlserver
|
- VIRTUAL_HOST=inbox.${NGINX_HOST}
|
||||||
- VIRTUAL_HOST=inbox.zathura.leene.dev
|
|
||||||
- VIRTUAL_PORT=9000
|
- VIRTUAL_PORT=9000
|
||||||
- LETSENCRYPT_HOST=inbox.zathura.leene.dev
|
- LETSENCRYPT_HOST=inbox.${NGINX_HOST}
|
||||||
- LETSENCRYPT_EMAIL=admin@zathura.leene.dev
|
- ROUNDCUBEMAIL_DB_HOST=pgsqlserver
|
||||||
|
- ROUNDCUBEMAIL_DEFAULT_HOST=tls://${NGINX_HOST}
|
||||||
|
- ROUNDCUBEMAIL_SMTP_SERVER=tls://${NGINX_HOST}
|
||||||
|
- ROUNDCUBEMAIL_DB_PASSWORD=${SQL_PSWD}
|
||||||
depends_on:
|
depends_on:
|
||||||
- pgsqlserver
|
- pgsqlserver
|
||||||
links:
|
links:
|
||||||
@ -75,7 +78,9 @@ services:
|
|||||||
image: mailserver/docker-mailserver:latest
|
image: mailserver/docker-mailserver:latest
|
||||||
container_name: mailserver
|
container_name: mailserver
|
||||||
hostname: inbox
|
hostname: inbox
|
||||||
domainname: zathura.leene.dev
|
domainname: ${NGINX_HOST}
|
||||||
|
environment:
|
||||||
|
- POSTMASTER_ADDRESS=admin@${NGINX_HOST}
|
||||||
ports:
|
ports:
|
||||||
- "25:25"
|
- "25:25"
|
||||||
- "143:143"
|
- "143:143"
|
||||||
@ -98,6 +103,8 @@ services:
|
|||||||
image: nginxproxy/nginx-proxy
|
image: nginxproxy/nginx-proxy
|
||||||
container_name: nginx-proxy
|
container_name: nginx-proxy
|
||||||
restart: always
|
restart: always
|
||||||
|
environment:
|
||||||
|
- DEFAULT_EMAIL=admin@${NGINX_HOST}
|
||||||
ports:
|
ports:
|
||||||
- "80:80"
|
- "80:80"
|
||||||
- "443:443"
|
- "443:443"
|
||||||
@ -108,7 +115,7 @@ services:
|
|||||||
- nginx_vhost:/etc/nginx/vhost.d/:z
|
- nginx_vhost:/etc/nginx/vhost.d/:z
|
||||||
- nginx_html:/usr/share/nginx/html:z
|
- nginx_html:/usr/share/nginx/html:z
|
||||||
- mail_html:/var/www/roundcube:z
|
- mail_html:/var/www/roundcube:z
|
||||||
- ./config/nginx/inbox.zathura.leene.dev_location:/etc/nginx/vhost.d/inbox.zathura.leene.dev_location:z
|
- ./config/nginx/inbox_location:/etc/nginx/vhost.d/inbox.${NGINX_HOST}_location:z
|
||||||
- /var/run/docker.sock:/tmp/docker.sock:z
|
- /var/run/docker.sock:/tmp/docker.sock:z
|
||||||
depends_on:
|
depends_on:
|
||||||
- ddnsgd
|
- ddnsgd
|
||||||
@ -118,6 +125,10 @@ services:
|
|||||||
container_name: "ddnsgd"
|
container_name: "ddnsgd"
|
||||||
image: "ghcr.io/dominickbrasileiro/ddnsgd"
|
image: "ghcr.io/dominickbrasileiro/ddnsgd"
|
||||||
restart: "always"
|
restart: "always"
|
||||||
|
environment:
|
||||||
|
- HOSTNAME=${NGINX_HOST}
|
||||||
|
- USERNAME=${DNS_USERNAME}
|
||||||
|
- PASSWORD=${DNS_PASSWORD}
|
||||||
|
|
||||||
acme-companion:
|
acme-companion:
|
||||||
<<: *defaults
|
<<: *defaults
|
||||||
|
20
local.env
20
local.env
@ -1,21 +1,10 @@
|
|||||||
## Keys
|
|
||||||
|
|
||||||
ROUNDCUBEMAIL_DB_PASSWORD=hear397sew
|
|
||||||
POSTGRES_PASSWORD="hear397sew"
|
|
||||||
USERNAME="JaMolgvImRt3jznO"
|
|
||||||
PASSWORD="Enl0rRgqBsZPVupA"
|
|
||||||
|
|
||||||
## Docker Env
|
## Docker Env
|
||||||
|
|
||||||
PERMIT_DOCKER=network
|
PERMIT_DOCKER=network
|
||||||
|
|
||||||
## Google Dynamic DNS
|
## Google Dynamic DNS
|
||||||
|
|
||||||
INTERVAL=900
|
INTERVAL=900
|
||||||
HOSTNAME="zathura.leene.dev"
|
|
||||||
|
|
||||||
## Mail Server Env
|
## Mail Server Env
|
||||||
|
|
||||||
POSTFIX_INET_PROTOCOLS=ipv4
|
POSTFIX_INET_PROTOCOLS=ipv4
|
||||||
TZ=Europe/Berlin
|
TZ=Europe/Berlin
|
||||||
ENABLE_SPAMASSASSIN=1
|
ENABLE_SPAMASSASSIN=1
|
||||||
@ -27,29 +16,20 @@ ENABLE_POSTGREY=1
|
|||||||
ENABLE_SASLAUTHD=0
|
ENABLE_SASLAUTHD=0
|
||||||
ONE_DIR=1
|
ONE_DIR=1
|
||||||
TLS_LEVEL=modern
|
TLS_LEVEL=modern
|
||||||
POSTMASTER_ADDRESS=admin@leene.dev
|
|
||||||
ENABLE_UPDATE_CHECK=1
|
ENABLE_UPDATE_CHECK=1
|
||||||
|
|
||||||
SSL_TYPE=letsencrypt
|
SSL_TYPE=letsencrypt
|
||||||
|
|
||||||
## SQL Server Env
|
## SQL Server Env
|
||||||
|
|
||||||
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
|
||||||
ROUNDCUBEMAIL_DB_USER=roundcube
|
ROUNDCUBEMAIL_DB_USER=roundcube
|
||||||
ROUNDCUBEMAIL_SKIN=elastic
|
ROUNDCUBEMAIL_SKIN=elastic
|
||||||
ROUNDCUBEMAIL_DEFAULT_HOST=tls://zathura.leene.dev
|
|
||||||
ROUNDCUBEMAIL_SMTP_SERVER=tls://zathura.leene.dev
|
|
||||||
ROUNDCUBEMAIL_ASPELL_DICTS=en
|
ROUNDCUBEMAIL_ASPELL_DICTS=en
|
||||||
|
|
||||||
## NGINX Reverse Proxy
|
## NGINX Reverse Proxy
|
||||||
|
|
||||||
NGINX_HOST=zathura.leene.dev
|
|
||||||
NGINX_PROXY_CONTAINER=nginx-proxy
|
NGINX_PROXY_CONTAINER=nginx-proxy
|
||||||
LETSENCRYPT_RESTART_CONTAINER=true
|
LETSENCRYPT_RESTART_CONTAINER=true
|
||||||
DEFAULT_EMAIL=lieuwe@leene.dev
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user