mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2025-08-29 15:06:26 +02:00
Restructure and cleaned up in preparation of new backup logic
This commit is contained in:
@@ -1,2 +1,3 @@
|
||||
# Todo
|
||||
- This role needs to be updated to the new role structure
|
||||
- This role needs to be updated to the new role structure
|
||||
- It needs to be tested - Really antique role which wasn't used since ages, because I used discourse in production instead and just updated the refactored and restructure stuff here.
|
@@ -1,3 +1,12 @@
|
||||
domains:
|
||||
canonical:
|
||||
- "wiki.{{ primary_domain }}"
|
||||
- "wiki.{{ primary_domain }}"
|
||||
docker:
|
||||
services:
|
||||
mediawiki:
|
||||
image: mediawiki
|
||||
version: latest
|
||||
no_stop_required: true
|
||||
name: mediawiki
|
||||
volumes:
|
||||
data: mediawiki_data
|
@@ -1,12 +1,10 @@
|
||||
{% include 'roles/docker-compose/templates/base.yml.j2' %}
|
||||
application:
|
||||
# Seems like image tag got lost. @todo Check and implement if necessary
|
||||
log_driver: journald
|
||||
restart: "{{docker_restart_policy}}"
|
||||
depends_on:
|
||||
- database
|
||||
{% include 'roles/docker-container/templates/base.yml.j2' %}
|
||||
container_name: "{{ mediawiki_name }}"
|
||||
image: "{{ mediawiki_image }}:{{ mediawiki_version }}"
|
||||
volumes:
|
||||
- "mediawiki-data:/var/www/html/"
|
||||
- "data:/var/www/html/"
|
||||
ports:
|
||||
- "127.0.0.1:{{ports.localhost.http[application_id]}}:80"
|
||||
{% include 'roles/docker-container/templates/networks.yml.j2' %}
|
||||
@@ -14,5 +12,5 @@
|
||||
|
||||
{% include 'roles/docker-compose/templates/volumes.yml.j2' %}
|
||||
data:
|
||||
|
||||
name: {{ mediawiki_volume }}
|
||||
{% include 'roles/docker-compose/templates/networks.yml.j2' %}
|
@@ -1,3 +1,6 @@
|
||||
application_id: "mediawiki"
|
||||
database_password: "{{mediawiki_database_password}}"
|
||||
database_type: "mariadb"
|
||||
application_id: "web-app-mediawiki"
|
||||
database_type: "mariadb"
|
||||
mediawiki_version: "{{ applications | get_app_conf(application_id, 'docker.services.mediawiki.version', True) }}"
|
||||
mediawiki_image: "{{ applications | get_app_conf(application_id, 'docker.services.mediawiki.image', True) }}"
|
||||
mediawiki_name: "{{ applications | get_app_conf(application_id, 'docker.services.mediawiki.name', True) }}"
|
||||
mediawiki_volume: "{{ applications | get_app_conf(application_id, 'docker.services.volumes.data', True) }}"
|
Reference in New Issue
Block a user