dockerconfig/docker-compose.yaml

78 lines
1.5 KiB
YAML
Raw Normal View History

2022-11-05 10:45:43 +01:00
version: "3.8"
2022-10-29 12:07:29 +02:00
2022-10-30 11:25:25 +01:00
networks:
2022-11-05 10:45:43 +01:00
internalnet:
2022-10-30 11:25:25 +01:00
external: false
2022-11-05 10:45:43 +01:00
x-mail: &defaults
env_file: local.env
networks:
- internalnet
2022-10-29 12:07:29 +02:00
services:
2022-11-05 10:45:43 +01:00
ddnsgd:
<<: *defaults
container_name: "ddnsgd"
image: "ghcr.io/dominickbrasileiro/ddnsgd"
restart: "always"
2022-10-30 11:25:25 +01:00
database:
2022-11-05 10:45:43 +01:00
<<: *defaults
container_name: pgsqlserver
2022-10-30 11:25:25 +01:00
image: postgres:15
volumes:
- type: bind
source: ./pgsql
target: /var/lib/postgresql/data
- ./pg-init-scripts:/docker-entrypoint-initdb.d
restart: always
ports:
- "5432:5432"
2022-11-05 10:45:43 +01:00
roundcubemail:
<<: *defaults
image: roundcube/roundcubemail:latest-fpm
container_name: roundcube
2022-10-30 11:25:25 +01:00
depends_on:
2022-11-05 10:45:43 +01:00
- roundcubedb
links:
- roundcubedb
2022-10-30 11:25:25 +01:00
ports:
2022-11-05 10:45:43 +01:00
- 9000:9000
2022-10-30 11:25:25 +01:00
volumes:
2022-11-05 10:45:43 +01:00
- ./mail/html:/var/www/html
mailserver:
<<: *defaults
image: docker.io/mailserver/docker-mailserver:latest
container_name: mailserver
hostname: mail
domainname: zathura.leene.dev
2022-10-30 11:25:25 +01:00
ports:
2022-11-05 10:45:43 +01:00
- "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:
<<: *defaults
image: adminer
restart: always
2022-10-30 11:25:25 +01:00
depends_on:
- database
2022-11-05 10:45:43 +01:00
ports:
- "8080:8080"