WIP: progress build

This commit is contained in:
2022-11-13 09:29:11 +01:00
parent dde53d3452
commit d75cbb6fdb
5 changed files with 47 additions and 5 deletions

View File

@ -17,6 +17,8 @@ services:
<<: *defaults
container_name: pgsqlserver
image: postgres:15
environment:
- POSTGRES_MULTIPLE_DATABASES="gitea, roundcube"
volumes:
- sql_data:/var/lib/postgresql/data/:z
- ./config/pg-init-scripts:/docker-entrypoint-initdb.d:ro
@ -24,13 +26,37 @@ services:
expose:
- "5432"
gitea:
<<: *defaults
container_name: gitea
image: gitea/gitea
restart: always
environment:
- VIRTUAL_HOST=git.zathura.leene.dev
- VIRTUAL_PORT=3000
- LETSENCRYPT_HOST=zathura.leene.dev
- LETSENCRYPT_EMAIL=admin@zathura.leene.dev
volumes:
- gitea_data:/data:z
- /etc/timezone:/etc/timezone:ro
- /etc/localtime:/etc/localtime:ro
expose:
- "3000"
ports:
- "222:22"
depends_on:
- pgsqlserver
links:
- pgsqlserver
roundcubemail:
<<: *defaults
image: roundcube/roundcubemail:latest-fpm
container_name: roundcubemail
environment:
- ROUNDCUBEMAIL_DB_HOST=pgsqlserver
- VIRTUAL_HOST=zathura.leene.dev
- VIRTUAL_HOST=inbox.zathura.leene.dev
- VIRTUAL_PORT=9000
- LETSENCRYPT_HOST=zathura.leene.dev
- LETSENCRYPT_EMAIL=admin@zathura.leene.dev
depends_on:
@ -66,7 +92,6 @@ services:
- ddnsgd
restart: always
reverse-proxy:
<<: *defaults
image: nginxproxy/nginx-proxy
@ -107,8 +132,8 @@ services:
build: ./config/nginx
volumes:
sql_data:
acme-state:
gitea_data:
nginx_certs:
nginx_dhparam:
nginx_html:
@ -117,3 +142,4 @@ volumes:
mail_data:
mail_config:
mail_state:
sql_data: