mirror of
https://github.com/kevinveenbirkenbach/computer-playbook.git
synced 2024-11-25 22:21:04 +01:00
30 lines
841 B
YAML
30 lines
841 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: always
|
|
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: always
|