solved deprecation message

This commit is contained in:
Kevin Veen-Birkenbach 2025-01-10 17:20:45 +01:00
parent 702148cfd0
commit 5aedb71d1c
4 changed files with 32 additions and 26 deletions

View File

@ -142,3 +142,6 @@ wfLoadSkin( 'Vector' );
# Add more configuration options below. # Add more configuration options below.
EOF EOF
``` ```
## Further Information
This role was adapted to solve some deprecation message. Please test it before using productive. [See this conversation](https://chatgpt.com/share/6781487e-45fc-800f-a35e-e93f49448176).

View File

@ -1,29 +1,10 @@
---
- name: "include docker/compose/database.yml"
include_tasks: docker/compose/database.yml
- name: "include tasks nginx-docker-proxy-domain.yml" - name: "include tasks nginx-docker-proxy-domain.yml"
include_tasks: nginx-docker-proxy-domain.yml include_tasks: nginx-docker-proxy-domain.yml
- name: "docker mediawiki" - name: add docker-compose.yml
docker_compose: template: src=docker-compose.yml.j2 dest={{docker_compose_instance_directory}}docker-compose.yml
project_name: mediawiki notify: docker compose project setup
definition:
application:
log_driver: journald
image: mediawiki
restart: "{{docker_restart_policy}}"
depends_on:
- database
volumes:
- "mediawiki-data:/var/www/html/"
ports:
- "127.0.0.1:{{http_port}}:80"
database:
log_driver: journald
image: mariadb
environment:
MYSQL_DATABASE: mediawiki
MYSQL_ROOT_PASSWORD: "{{mediawiki_database_password}}"
MYSQL_USER: mediawiki
MYSQL_PASSWORD: "{{mediawiki_database_password}}"
MARIADB_AUTO_UPGRADE: "1"
volumes:
- database:/var/lib/mysql
restart: "{{docker_restart_policy}}"

View File

@ -0,0 +1,19 @@
services:
{% include 'templates/docker/services/' + database_type + '.yml.j2' %}
application:
log_driver: journald
restart: "{{docker_restart_policy}}"
depends_on:
- database
volumes:
- "mediawiki-data:/var/www/html/"
ports:
- "127.0.0.1:{{http_port}}:80"
{% include 'templates/docker/container/networks.yml.j2' %}
{% include 'templates/docker/container/depends-on-just-database.yml.j2' %}
{% include 'templates/docker/compose/volumes.yml.j2' %}
data:
{% include 'templates/docker/compose/networks.yml.j2' %}

View File

@ -0,0 +1,3 @@
docker_compose_project_name: "mediawiki"
database_password: "{{mediawiki_database_password}}"
database_type: "mariadb"