mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-26 22:51:05 +01:00
30 lines
883 B
YAML
30 lines
883 B
YAML
- name: "include tasks nginx-docker-proxy-domain.yml"
|
|
include_tasks: nginx-docker-proxy-domain.yml
|
|
|
|
- name: "docker mediawiki"
|
|
docker_compose:
|
|
project_name: mediawiki
|
|
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}}"
|