update google dns

This commit is contained in:
Lieuwe Leene 2022-11-05 10:45:43 +01:00
parent a1cf58614a
commit b7f215d3bf
2 changed files with 90 additions and 37 deletions

View File

@ -1,12 +1,24 @@
version: "3.5" version: "3.8"
networks: networks:
gitea: internalnet:
external: false external: false
x-mail: &defaults
env_file: local.env
networks:
- internalnet
services: services:
ddnsgd:
<<: *defaults
container_name: "ddnsgd"
image: "ghcr.io/dominickbrasileiro/ddnsgd"
restart: "always"
database: database:
container_name: PGSQLdb <<: *defaults
container_name: pgsqlserver
image: postgres:15 image: postgres:15
volumes: volumes:
- type: bind - type: bind
@ -16,44 +28,50 @@ services:
restart: always restart: always
ports: ports:
- "5432:5432" - "5432:5432"
environment:
POSTGRES_USER: "pgadmin" roundcubemail:
POSTGRES_PASSWORD: "hear397sew" <<: *defaults
POSTGRES_INITDB_ARGS: "--auth-host=scram-sha-256 --auth-local=scram-sha-256" image: roundcube/roundcubemail:latest-fpm
POSTGRES_MULTIPLE_DATABASES: "gitea, postfix" container_name: roundcube
networks: depends_on:
- gitea - roundcubedb
links:
- roundcubedb
ports:
- 9000:9000
volumes:
- ./mail/html:/var/www/html
mailserver:
<<: *defaults
image: docker.io/mailserver/docker-mailserver:latest
container_name: mailserver
hostname: mail
domainname: zathura.leene.dev
ports:
- "25:25"
- "143:143"
- "587:587"
- "993:993"
volumes:
- ./mail/mail-data/:/var/mail/
- ./mail/mail-state/:/var/mail-state/
- ./mail/mail-logs/:/var/log/mail/
- ./mail/config/:/tmp/docker-mailserver/
- /etc/localtime:/etc/localtime:ro
cap_add:
- NET_ADMIN
depends_on:
- ddnsgd
restart: always
adminer: adminer:
<<: *defaults
image: adminer image: adminer
restart: always restart: always
depends_on: depends_on:
- database - database
ports: ports:
- 8080:8080 - "8080:8080"
networks:
- gitea
server:
image: gitea/gitea
container_name: gitea
environment:
- USER_UID=1000
- USER_GID=1000
- GITEA__database__DB_TYPE=postgres
- GITEA__database__HOST=database:5432
- GITEA__database__NAME=gitea
- GITEA__database__USER=gitea
- GITEA__database__PASSWD="hear397sew"
restart: always
networks:
- gitea
volumes:
- ./gitea:/data
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
ports:
- "3000:3000"
- "222:22"
depends_on:
- database

35
local.env Normal file
View File

@ -0,0 +1,35 @@
## Google Dynamic DNS
INTERVAL=30
HOSTNAME="zathura.leene.dev"
USERNAME="JaMolgvImRt3jznO"
PASSWORD="Enl0rRgqBsZPVupA"
## Mail Server Env
ENABLE_SPAMASSASSIN=1
SPAMASSASSIN_SPAM_TO_INBOX=1
ENABLE_CLAMAV=1
ENABLE_FAIL2BAN=1
ENABLE_POSTGREY=1
ENABLE_SASLAUTHD=0
ONE_DIR=1
## SQL Server Env
POSTGRES_USER="pgadmin"
POSTGRES_PASSWORD="hear397sew"
POSTGRES_INITDB_ARGS="--auth-host=scram-sha-256 --auth-local=scram-sha-256"
POSTGRES_MULTIPLE_DATABASES="gitea, roundcube"
## Round Cube Env
ROUNDCUBEMAIL_DB_TYPE=pgsql
ROUNDCUBEMAIL_DB_HOST=database
ROUNDCUBEMAIL_DB_NAME=roundcube
ROUNDCUBEMAIL_DB_USER=roundcube
ROUNDCUBEMAIL_DB_PASSWORD=hear397sew
ROUNDCUBEMAIL_SKIN=elastic
ROUNDCUBEMAIL_DEFAULT_HOST=tls://mail.zathura.leene.dev
ROUNDCUBEMAIL_SMTP_SERVER=tls://mail.zathura.leene.dev