docker-mediawiki/docker-compose.yml

37 lines
797 B
YAML
Raw Normal View History

version: '3'
services:
mediawiki:
build: .
depends_on:
- database
restart: always
ports:
2020-01-08 18:39:41 -05:00
- 127.0.0.1:31322:80
volumes:
- ./images:/var/www/html/images
- ./LocalSettings.php:/var/www/html/LocalSettings.php:ro
- ./secrets.php:/var/www/html/secrets.php:ro
2020-06-25 02:35:53 -04:00
- ./uploads.ini:/usr/local/etc/php/conf.d/uploads.ini:ro
2022-03-18 23:15:25 -04:00
diagrams:
build: ./diagrams
restart: always
volumes:
- diagrams-vol:/root/.diagrams
database:
image: mariadb
2021-07-07 15:43:33 -04:00
volumes:
- mysql-vol:/var/lib/mysql
restart: always
env_file: .env
environment:
MYSQL_DATABASE: mediawiki
#MYSQL_USER and MYSQL_PASSWORD in .env
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
MARIADB_AUTO_UPGRADE: 'yes'
2022-03-18 23:15:25 -04:00
2021-07-07 15:43:33 -04:00
volumes:
mysql-vol:
2022-03-18 23:15:25 -04:00
diagrams-vol: