mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Changed roles to new docker backup procedure
This commit is contained in:
@@ -26,12 +26,12 @@ services:
|
||||
volumes:
|
||||
- database:/var/lib/postgresql/data
|
||||
environment:
|
||||
- POSTGRES_DB=matrix
|
||||
- POSTGRES_USER=matrix
|
||||
- POSTGRES_PASSWORD={{matrix_database_password}}
|
||||
- POSTGRES_DB={{database_databasename}}
|
||||
- POSTGRES_USER={{database_username}}
|
||||
- POSTGRES_PASSWORD={{database_password}}
|
||||
- POSTGRES_INITDB_ARGS=--encoding=UTF8 --locale=C
|
||||
healthcheck:
|
||||
test: ["CMD-SHELL", "pg_isready -U matrix"]
|
||||
test: ["CMD-SHELL", "pg_isready -U {{database_username}}"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 6
|
||||
|
@@ -1,2 +1,7 @@
|
||||
---
|
||||
docker_compose_instance_directory: "{{path_docker_compose_instances}}matrix/"
|
||||
docker_compose_instance_directory: "{{path_docker_compose_instances}}matrix/"
|
||||
database_instance: "matrix"
|
||||
database_host: "database"
|
||||
database_databasename: "{{database_instance}}"
|
||||
database_username: "{{database_instance}}"
|
||||
database_password: "{{matrix_database_password}}"
|
Reference in New Issue
Block a user