Dockerfile for MediaWiki with mSMTP client.
docker-compose file includes:
- Docker Swarm support
- Traefik v2 support
- clone the repo
- copy one of the docker-compose (dev/traefik) templates to
- to create a docker-compose.prod.yml file for docker swarm run:
docker-compose config > docker-compose.prod.yml
The stack is divided into two networks, backend and frontend.
the idea behind splitting the stack into two networks is to block the access of the reverse proxy to the backend containers.
both networks are unique and will be named with stack-name_network-name such as:
after running docker-compose up you need to connect your reverse proxy to your new frontend network: you can do that manually using:
docker network connect docker-mediawiki_frontend PROXY_CONTAINER_NAME
if you are using my Traefik setup there is a 'connect.sh' script included that will connect all your frontend networks to your Traefik container.