I have locally installed MediaWiki using Docker Compose, as described in the documentation.
It works as expected.
My project folder contains only LocalSettings.php and compose.yaml.
The latter now looks like this:
services:
mediawiki:
image: mediawiki
restart: always
ports:
- 8080:80
links:
- database
volumes:
- images:/var/www/html/images
- ./LocalSettings.php:/var/www/html/LocalSettings.php
database:
image: mariadb
restart: always
environment:
MYSQL_DATABASE: my_wiki
MYSQL_USER: wikiuser
MYSQL_PASSWORD: example
MYSQL_RANDOM_ROOT_PASSWORD: 'yes'
volumes:
- db:/var/lib/mysql
volumes:
images:
db:
But now I have to make some adaptations in the PHP files. How can I do that?
(Apparently they are somewhere in /var/lib/docker, where I should not poke around.)
I would like to see (and potentially edit) all the MediaWiki code in a subfolder of my project folder.
I thought a line like - ./html:/var/www/html would do it, but that does not work.
BTW, what does - images:/var/www/html/images mean? To the right of the colon is a folder in the container, but what is the images to its left?