MediaWiki Docker image for Canasta, an all-in-one MediaWiki stack for easy deployment and management of enterprise-ready MediaWiki on production environments.
There is a need for container to connect to Docker host for:
Sending emails
Do VisualEditor Parsoid API calls
Right now there is a hard-coded default 172.17.0.1[1][2] address for Docker host being used, this works fine most of the time, however, considering default bridge network may vary either due to changes made to Docker daemon.json configuration file on target host or due to hitting limit of subnets occupied.
It'd be better to have this address detected automatically, fortunately, starting Docker 20.04 this is possible via --add-host=host.docker.internal:host-gateway param or extra_hosts attribute in a Compose file
There is a need for container to connect to Docker host for:
Right now there is a hard-coded default
172.17.0.1
[1] [2] address for Docker host being used, this works fine most of the time, however, considering default bridge network may vary either due to changes made to Dockerdaemon.json
configuration file on target host or due to hitting limit of subnets occupied.It'd be better to have this address detected automatically, fortunately, starting Docker
20.04
this is possible via--add-host=host.docker.internal:host-gateway
param orextra_hosts
attribute in a Compose file