Added some recipes.
This commit is contained in:
49
.recipes/mediawiki_mariadb/docker-compose.yml
Normal file
49
.recipes/mediawiki_mariadb/docker-compose.yml
Normal file
@ -0,0 +1,49 @@
|
||||
# MediaWiki with MariaDB (optionally with extensions).
|
||||
#
|
||||
version: '3'
|
||||
services:
|
||||
# https://hub.docker.com/_/mediawiki
|
||||
mediawiki:
|
||||
# Activate only if there are extensions.
|
||||
#build: ./docker/mediawiki
|
||||
image: mediawiki:lts
|
||||
restart: unless-stopped
|
||||
# Take a look the possible public port collision.
|
||||
ports:
|
||||
- 8201:80
|
||||
links:
|
||||
- database
|
||||
volumes:
|
||||
# Needs R/W UID:GID 33:33 (www-data:www-data).
|
||||
- ./storage/volumes/mediawiki_images:/var/www/html/images
|
||||
# After initial setup, download LocalSettings.php
|
||||
# populate the following line and
|
||||
# use compose to restart the mediawiki service.
|
||||
# Needs read UID or GID 33 (www-data).
|
||||
# - ./configs/LocalSettings.php:/var/www/html/LocalSettings.php:ro
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: true
|
||||
# https://hub.docker.com/_/mariadb
|
||||
database:
|
||||
image: mariadb:lts
|
||||
restart: unless-stopped
|
||||
volumes:
|
||||
# Needs R/W UID:GID 999:999.
|
||||
- ./storage/volumes/mysql:/var/lib/mysql
|
||||
# Needs read UID 999.
|
||||
- ./storage/volumes/mysql_conf_d:/etc/mysql/conf.d
|
||||
- ./storage/volumes/mysql_init_d:/docker-entrypoint-initdb.d
|
||||
environment:
|
||||
MARIADB_AUTO_UPGRADE: "1"
|
||||
MARIADB_INITDB_SKIP_TZINFO: "1"
|
||||
MYSQL_DATABASE: mediawiki
|
||||
MYSQL_USER: mediawiki
|
||||
# https://passwordsgenerator.net/
|
||||
MYSQL_PASSWORD: secret-1
|
||||
MYSQL_ROOT_PASSWORD: secret-2
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
labels:
|
||||
com.centurylinklabs.watchtower.enable: true
|
Reference in New Issue
Block a user