Hello,
I tried to install on a VPS via docker-compose Mediawiki. The reverse proxy is Traefik which works with Nextcloud;Portainer without restrictions. Based on your template I have adapted the docker-compose.yml.
bitnami-docker-mediawiki 1.34.2-debian-10-r5 release
docker-compose version 1.25.4
traefik version v2.3.2
VPS Debian 10
docker-compose.yml
version: '2'
services:
mariadb:
image: 'docker.io/bitnami/mariadb:10.3-debian-10'
environment:
- ALLOW_EMPTY_PASSWORD=yes
- MARIADB_USER=bn_mediawiki
- MARIADB_DATABASE=bitnami_mediawiki
volumes:
- '/opt/containers/mediawiki/mariadb_data:/bitnami/mariadb'
networks:
- default
mediawiki:
image: 'docker.io/bitnami/mediawiki:1-debian-10'
environment:
- MEDIAWIKI_DATABASE_HOST=mariadb
- MEDIAWIKI_DATABASE_PORT_NUMBER=3306
- MEDIAWIKI_DATABASE_USER=bn_mediawiki
- MEDIAWIKI_DATABASE_NAME=bitnami_mediawiki
- ALLOW_EMPTY_PASSWORD=yes
volumes:
- '/opt/containers/mediawiki/mediawiki_data:/bitnami/mediawiki'
depends_on:
- mariadb
labels:
- "traefik.enable=true"
- "traefik.http.routers.mediawiki.entrypoints=http"
- "traefik.http.routers.mediawiki.rule=Host(****.eu
)"
- "traefik.http.middlewares.mediawiki-https-redirect.redirectscheme.scheme=https"
- "traefik.http.routers.mediawiki.middlewares=mediawiki-https-redirect"
- "traefik.http.routers.mediawiki-secure.entrypoints=https"
- "traefik.http.routers.mediawiki-secure.rule=Host(****.eu
)"
- "traefik.http.routers.mediawiki-secure.tls=true"
- "traefik.http.routers.mediawiki-secure.tls.certresolver=http"
- "traefik.http.routers.mediawiki-secure.service=mediawiki"
- "traefik.http.services.mediawiki.loadbalancer.server.port=80"
- "traefik.docker.network=proxy"
networks:
- default
- proxy
networks:
proxy:
external: true
So far everything could be installed without any problems, the containers run smoothly according to the logs.
If I now go to the given URL there is always badgateway.
MediaWiki Docker Logs
mediawiki 20:44:10.93 INFO ==> ** Starting MediaWiki setup **
mediawiki 20:44:11.01 INFO ==> Configuring PHP options
mediawiki 20:44:11.01 INFO ==> Setting PHP expose_php option
mediawiki 20:44:11.07 INFO ==> Validating settings in MYSQL_CLIENT_* env vars
mediawiki 20:44:11.17 WARN ==> You set the environment variable ALLOW_EMPTY_PASSWORD=yes. For safety reasons, do not use this flag in a production environment.
mediawiki 20:44:11.24 INFO ==> Restoring persisted MediaWiki installation
mediawiki 20:44:12.24 INFO ==> Trying to connect to the database server
mediawiki 20:44:18.26 INFO ==> ** MediaWiki setup finished! **
mediawiki 20:44:18.27 INFO ==> ** Starting Apache **
[Wed Nov 11 20:44:18.390304 2020] [ssl:warn] [pid 1] AH01909: www.example.com:8443:0 server certificate does NOT include an ID which matches the server name
[Wed Nov 11 20:44:18.413885 2020] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.1.1d PHP/7.3.24 configured -- resuming normal operations
[Wed Nov 11 20:44:18.414148 2020] [core:notice] [pid 1] AH00094: Command line: '/opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf -D FOREGROUND'
So when I change Port=80 to "traefik.http.services.mediawiki.loadbalancer.server.port=8080" i get the follwing
Log Port 8080
mediawiki 21:15:31.44 INFO ==> ** Starting Apache **
[Thu Nov 12 21:15:31.616729 2020] [ssl:warn] [pid 1] AH01909: www.example.com:8443:0 server certificate does NOT include an ID which matches the server name
[Thu Nov 12 21:15:31.649012 2020] [mpm_prefork:notice] [pid 1] AH00163: Apache/2.4.46 (Unix) OpenSSL/1.1.1d PHP/7.3.24 configured -- resuming normal operations
[Thu Nov 12 21:15:31.651795 2020] [core:notice] [pid 1] AH00094: Command line: '/opt/bitnami/apache/bin/httpd -f /opt/bitnami/apache/conf/httpd.conf -D FOREGROUND'
172.18.0.2 - - [12/Nov/2020:21:24:10 +0000] "GET / HTTP/1.1" 301 -
172.18.0.2 - - [12/Nov/2020:21:38:35 +0000] "GET / HTTP/1.1" 301 -
172.18.0.2 - - [12/Nov/2020:21:39:28 +0000] "GET / HTTP/1.1" 301 -
172.18.0.2 - - [12/Nov/2020:21:39:45 +0000] "GET / HTTP/1.1" 301 -
172.18.0.2 - - [12/Nov/2020:21:40:07 +0000] "GET / HTTP/1.1" 301 -
Do you have ideas or suggestions for a solution. Would be very grateful! I can't see the forest for the trees anymore.