requarks / wiki-v1

Legacy version (1.x) of Wiki.js
https://wiki.js.org
GNU Affero General Public License v3.0
101 stars 75 forks source link

Webserver does not seem to send data from docker container to host #163

Closed bensta closed 4 years ago

bensta commented 5 years ago

I try to run wiki.js using docker compose on my macbook with an up to date MacOS Mojave

Actual behavior

Open a browser on the host and visit localhost:8080

It seems as if some sort of Firewall drops packages somewhere between host and docker image. My MacBook firewall is deactivated however.

Any help is appreciated!

NGPixel commented 5 years ago
bensta commented 5 years ago

Just tried port 3000 everywhere, same result.

The logs: wiki-stderr.log Errors that are present:

Note: The output from the mongoDB container shows active, accepted connections, so the mongoDB issue seems to be solved later in the startup process I guess (see line 37-41 in the output on pastebin)

wiki-stdout.log

NGPixel commented 5 years ago

While you might get active connections in MongoDB, it relies on a pool of connections. If some of them are failing, there's a good chance some pages will fail to load.

Try starting MongoDB as a separate container, wait for it to be fully started. Then start a separate container with Wiki.js pointing to that DB.

bensta commented 5 years ago

Thanks for your help!

I ran: First: docker run --name wikidb -d mongo Then: docker run -p 3000:3000 --name wikijs --link wikidb:wikijs -e "WIKI_ADMIN_EMAIL=admin@example.com" -v /Users/johndoe/wiki/dockerfile/config.yml:/var/wiki/config.yml requarks/wiki

it worked. I assume, that some sort of health check should be included in the docker compose file to check if mongoDB is ready, what is your take on this?

NGPixel commented 5 years ago

This is already the case in 2.0.