General deployment #1

Merged
carsten merged 18 commits from deploy into main 2023-09-13 22:33:47 +02:00
3 changed files with 19 additions and 16 deletions
Showing only changes of commit 410a845459 - Show all commits

View file

@ -37,8 +37,9 @@ services:
restart: "${RESTART:-no}" restart: "${RESTART:-no}"
environment: environment:
- POSTGRES_DB=matrix - POSTGRES_DB=matrix
- POSTGRES_USER=${MATRIX_PG_USER:-matrix} - POSTGRES_USER=matrix
- POSTGRES_PASSWORD=${MATRIX_PG_PWD:-matrix} - POSTGRES_PASSWORD=${MATRIX_PG_PWD:-matrix}
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes: volumes:
- ${BASE_DIR:-/srv}/matrix/psql:/var/lib/postgresql/data - ${BASE_DIR:-/srv}/matrix/psql:/var/lib/postgresql/data
networks: networks:

View file

@ -1,7 +1,6 @@
(logging) { (logging) {
log { log {
output stdout output stdout
# format transform "{common_log}"
} }
} }
@ -31,14 +30,23 @@
} }
} }
# https://{$BASE_DOMAIN} { https://{$BASE_DOMAIN} {
# import logging import logging
# import errorpages import errorpages
# reverse_proxy /_matrix* matrix:8008 @matrix {
path /_matrix/* /_synapse/*
}
reverse_proxy @matrix matrix:8008
# root * /srv/homepage root * /srv/homepage
# file_server file_server
# } }
https://{$BASE_DOMAIN}:8448 {
import logging
import errorpages
reverse_proxy matrix:8008
}
# needs to be http! # needs to be http!
http://autoconfig.{$BASE_DOMAIN} { http://autoconfig.{$BASE_DOMAIN} {
@ -75,12 +83,6 @@ https://git-next.{$BASE_DOMAIN} {
reverse_proxy forgejo:3000 reverse_proxy forgejo:3000
} }
# https://{$BASE_DOMAIN}:8448 {
# import logging
# import errorpages
# reverse_proxy matrix:8008
# }
# https://echo.{$BASE_DOMAIN} { # https://echo.{$BASE_DOMAIN} {
# import logging # import logging
# import errorpages # import errorpages

View file

@ -29,7 +29,7 @@ tasks:
psql-restore: psql-restore:
desc: Load postgres database for restore desc: Load postgres database for restore
cmds: cmds:
- docker exec pg-{{.CLI_ARGS}} psql --echo-errors -U {{.CLI_ARGS}} -d {{.CLI_ARGS}} < {{.TMP_DIR}}/{{.CLI_ARGS}}.sql - docker exec -i pg-{{.CLI_ARGS}} psql --echo-errors -U {{.CLI_ARGS}} -d {{.CLI_ARGS}} < {{.TMP_DIR}}/{{.CLI_ARGS}}.sql
psql-clear-tmp: psql-clear-tmp:
desc: Clear temporary sql files created by psql-dump desc: Clear temporary sql files created by psql-dump