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

@@ -6,10 +6,10 @@ services:
logging:
driver: journald
environment:
JOOMLA_DB_HOST: "database:3306"
JOOMLA_DB_USER: "joomla"
JOOMLA_DB_PASSWORD: "{{joomla_database_password}}"
JOOMLA_DB_NAME: "joomla"
JOOMLA_DB_HOST: "{{database_host}}:3306"
JOOMLA_DB_USER: "{{database_username}}"
JOOMLA_DB_PASSWORD: "{{database_password}}"
JOOMLA_DB_NAME: "{{database_databasename}}"
restart: always
links:
- database
@@ -17,19 +17,9 @@ services:
- data:/var/www/html
ports:
- "127.0.0.1:{{http_port}}:80"
database:
image: mariadb
logging:
driver: journald
environment:
MYSQL_DATABASE: "joomla"
MYSQL_USER: "joomla"
MYSQL_PASSWORD: "{{joomla_database_password}}"
MYSQL_ROOT_PASSWORD: "{{joomla_database_password}}"
MARIADB_AUTO_UPGRADE: "1"
volumes:
- database:/var/lib/mysql
restart: always
{% include 'templates/docker-mariadb-service.yml.j2' %}
volumes:
database:
data:

View File

@@ -1 +1,6 @@
docker_compose_instance_directory: "{{path_docker_compose_instances}}joomla/"
database_instance: "joomla"
database_host: "database"
database_databasename: "{{database_instance}}"
database_username: "{{database_instance}}"
database_password: "{{joomla_database_password}}"