mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-01-22 07:03:21 +01:00
solved deprecation message
This commit is contained in:
parent
702148cfd0
commit
5aedb71d1c
@ -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).
|
||||||
|
@ -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}}"
|
|
||||||
|
19
roles/docker-mediawiki/templates/docker-compose.yml.j2
Normal file
19
roles/docker-mediawiki/templates/docker-compose.yml.j2
Normal 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' %}
|
3
roles/docker-mediawiki/vars/main.yml
Normal file
3
roles/docker-mediawiki/vars/main.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
docker_compose_project_name: "mediawiki"
|
||||||
|
database_password: "{{mediawiki_database_password}}"
|
||||||
|
database_type: "mariadb"
|
Loading…
x
Reference in New Issue
Block a user