mirror of
https://github.com/lleene/dockerconfig.git
synced 2025-01-23 05:12:20 +01:00
113 lines
2.4 KiB
YAML
113 lines
2.4 KiB
YAML
version: "3.8"
|
|
|
|
networks:
|
|
internalnet:
|
|
|
|
|
|
x-mail: &defaults
|
|
env_file: local.env
|
|
networks:
|
|
- internalnet
|
|
|
|
services:
|
|
ddnsgd:
|
|
<<: *defaults
|
|
container_name: "ddnsgd"
|
|
image: "ghcr.io/dominickbrasileiro/ddnsgd"
|
|
restart: "always"
|
|
|
|
database:
|
|
<<: *defaults
|
|
container_name: pgsqlserver
|
|
image: postgres:15
|
|
volumes:
|
|
- type: bind
|
|
source: ./pgsql
|
|
target: /var/lib/postgresql/data:z
|
|
- ./config/pg-init-scripts:/docker-entrypoint-initdb.d:z
|
|
restart: always
|
|
ports:
|
|
- "5432:5432"
|
|
|
|
adminer:
|
|
<<: *defaults
|
|
image: adminer
|
|
restart: always
|
|
depends_on:
|
|
- database
|
|
ports:
|
|
- "8080:8080"
|
|
|
|
roundcubemail:
|
|
<<: *defaults
|
|
image: roundcube/roundcubemail:latest-fpm
|
|
container_name: roundcube
|
|
depends_on:
|
|
- database
|
|
links:
|
|
- database
|
|
ports:
|
|
- 9000:9000
|
|
volumes:
|
|
- ./mail/html:/var/www/html:z
|
|
|
|
|
|
mailserver:
|
|
build: .
|
|
<<: *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/letsencrypt:/etc/letsencrypt:z
|
|
- ./mail/mail-data/:/var/mail/:z
|
|
- ./mail/mail-state/:/var/mail-state/:z
|
|
- ./mail/mail-logs/:/var/log/mail/:z
|
|
- ./mail/config/:/tmp/docker-mailserver/:z
|
|
- ./mail/certs/:/certs:z
|
|
- /etc/localtime:/etc/localtime:ro
|
|
|
|
cap_add:
|
|
- NET_ADMIN
|
|
depends_on:
|
|
- ddnsgd
|
|
restart: always
|
|
|
|
reverse-proxy:
|
|
<<: *defaults
|
|
image: nginxproxy/nginx-proxy
|
|
container_name: nginx-proxy
|
|
restart: always
|
|
ports:
|
|
- "80:80"
|
|
- "443:443"
|
|
volumes:
|
|
- ./nginx/conf/:/etc/nginx/conf.d:z
|
|
- ./nginx/html/:/usr/share/nginx/html/:z
|
|
- ./nginx/vhost/:/etc/nginx/vhost.d/:z
|
|
- ./nginx/certs/:/etc/nginx/certs/:ro
|
|
- ./nginx/dhparam:/etc/nginx/dhparam:z
|
|
- /var/run/docker.sock:/tmp/docker.sock:ro
|
|
depends_on:
|
|
- ddnsgd
|
|
|
|
acme-companion:
|
|
<<: *defaults
|
|
image: nginxproxy/acme-companion
|
|
container_name: nginx-proxy-acme
|
|
restart: always
|
|
volumes_from:
|
|
- reverse-proxy
|
|
volumes:
|
|
- ./nginx/certs/:/etc/nginx/certs/:rw
|
|
- ./nginx/acme-state/:/etc/acme.sh/:z
|
|
- /var/run/docker.sock:/var/run/docker.sock:ro
|
|
depends_on:
|
|
- ddnsgd
|