Changed roles to new docker backup procedure

This commit is contained in:
2023-12-26 03:13:16 +01:00
parent d010ea55ad
commit 8863a00908
35 changed files with 215 additions and 228 deletions

View File

@@ -20,25 +20,8 @@ services:
- resolver
dns:
- 192.168.203.254
database:
image: mariadb
restart: always
environment:
MYSQL_DATABASE: "mailu"
MYSQL_USER: "mailu"
MYSQL_PASSWORD: "{{mailu_database_password}}"
MYSQL_ROOT_PASSWORD: "{{mailu_database_password}}"
MARIADB_AUTO_UPGRADE: "1"
volumes:
- database:/var/lib/mysql
healthcheck:
test: "/usr/bin/mariadb --user=mailu --password={{mailu_database_password}} --execute \"SHOW DATABASES;\""
interval: 3s
timeout: 1s
retries: 5
logging:
driver: journald
{% include 'templates/docker-mariadb-service.yml.j2' %}
depends_on:
- resolver
dns:

View File

@@ -140,15 +140,15 @@ LOG_LEVEL=WARNING
# Database settings
###################################
DB_FLAVOR=mysql
DB_USER=mailu
DB_PW={{mailu_database_password}}
DB_HOST=database:3306
DB_NAME=mailu
DB_USER={{database_username}}
DB_PW={{database_password}}
DB_HOST={{database_host}}:3306
DB_NAME={{database_databasename}}
ROUNDCUBE_DB_FLAVOR=mysql
ROUNDCUBE_DB_USER=mailu
ROUNDCUBE_DB_PW={{mailu_database_password}}
ROUNDCUBE_DB_NAME=mailu
ROUNDCUBE_DB_HOST=database:3306
ROUNDCUBE_DB_USER={{database_username}}
ROUNDCUBE_DB_PW={{database_password}}
ROUNDCUBE_DB_NAME={{database_databasename}}
ROUNDCUBE_DB_HOST={{database_host}}:3306
API_TOKEN={{mailu_api_token}}