JSJitsu / ai-battle-website

Run and replay game battles.
https://jsfight.club
12 stars 18 forks source link

Configure Docker-Compose #104

Closed Jaspaul closed 5 years ago

Jaspaul commented 5 years ago

Fixes: https://github.com/JSJitsu/ai-battle-website/issues/103

This change enables the consumer of this repo to simply run docker-compose up to run this project.

Jaspaul commented 5 years ago

@Asuza made the requested change. Let me know if there's anything else you'd like.

Asuza commented 5 years ago

@Jaspaul, the docker container comes up fine and everything seems to be running, so thank you for getting that working. I'm unable to navigate to http://localhost:8080 or https://localhost:8080 to see the page, though. Were you able to load it?

Jaspaul commented 5 years ago

I did verify being able to view it in the browser. Did you encounter any errors that you can share?

Asuza commented 5 years ago

Nope, no errors at all other than the browser not being able to reach it. I'll look into it more as soon as I can. If you can view it, then my local environment may be in a goofy state. Thanks!

Jaspaul commented 5 years ago

I could see issues if you have another application running on port 8080. You can try updating the docker-compose file to expose another port or try stopping all of your containers (docker container stop $(docker container ls -aq)) and trying again.

If none of that works, you can try stopping the containers and pruning them to see if you have any success.

Jaspaul commented 5 years ago

Verified that it works for me, below are my outputs in the browser and terminal respectively:

Screen Shot 2019-10-09 at 12 42 07 AM Screen Shot 2019-10-09 at 12 42 12 AM

Asuza commented 5 years ago

@Jaspaul thank you for your time and contribution! It started working for me before I had a chance to see your messages, and I'm not sure why. I appreciate you going above and beyond to help me get it working.