Closed nliakm closed 8 years ago
Open the dockerfile with notepad++ or another proper text editor and remove line 39.
The file has been removed several commits ago but the dockerfile hasn't been changed yet because we where working on a better optimization for it.
Ok thank you. Did that. But when the server is starting, it cant connect to mysql database. i dont know what ip adress i have to put in the cfg.js
172.0.0.1 not working ip of the docker container also not working.
i dont have any clue what to do.
Have you setup an MySQL server with a database @nliakm
@nliakm can you post a screenshot? How do you run the docker container? Have you modified the mysql settings in the cfg.js? If so restore those to the default.
Can you open a terminal and try service mysql start
? Which processes are running in the process tab (dunno if you got this? I do on my NAS ?
Try looking in the Log as well
And verify if there are no exits or crashes.
@Cronick The Dockerfile creates a database by default so all people have to do is add the cfg.js with their google credentials and afterwards to run npm install
and npm run boot
I actually managed to make it work. the server is connected to the database but i cant connect on my server via the ip. what i have to do to let my container communicate with devices from outside?
When you run the docker container you can map the ports. Check the mapped port for 3000. Docker by default has another ip range so it doesn't interfere with your home lan.
So you need to figure out the ip from your machine where docker is run on and then place it in the xposed module
i hosted a few servers from a laptop using linux server. i know how to set it up in my router. never did it with docker. but for now, i just want to access from my computer (where docker is running).
Hm i thought i did it with the -p flag. But i remember i once did a docker-tutorial, where i had to access the container from my browser . When im back home at sunday, i will check that.
Yeah then you just need your laptop ip and the port you use in the run command unless you run it with gui.
Oh that was the problem. I took the wrong IP. Ok everything is working now! Thanks for helping me out!
@DracoMilesX Alright about the MySQL thing. Have not played around with Docker, so it's why :D But seems like the issue is fixed, so will close it :P
When i try to run the docker, following error appears:
chmod: cannot access '/POGOserver/run-linux.sh': No such file or directory The command '/bin/sh -c chmod +x /POGOserver/run-linux.sh' returned a non-zero code: 1
so the run-linux-sh is missing in your repo? or do i have to add its somewhere else?