mybb / docker

The official Dockerfile for the MyBB forum software.

Home Page:https://mybb.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Container does not work?

Alradas opened this issue · comments

I installed a docker container just a few seconds ago with following exact command:

docker container run -d --name mybb-test -p 8099:80/tcp mybb/mybb:latest
image

I wanted to open the container called "mybb-test" on the port 8099 of my host-system (80 is already in use).
I understand that there is no database or anything yet, but normally after installing mybb you get this nice install wizard and when I try to open my ip plus the port in the browser I only get a denied request message.

image

What am I doing wrong?

The MyBB container only contains the PHP-FPM service + the MyBB files, you need to also create an nginx container with the appropriate configuration mounted in order to reverse proxy to the MyBB container.

https://github.com/mybb/docker#-via-docker-stack-deploy-or-docker-compose
https://gist.github.com/kawaii/ed2fbbf11309b8f635a623fa87abce8d