Giter VIP home page Giter VIP logo

Comments (4)

emcniece avatar emcniece commented on August 18, 2024

This is a Docker networking issue, not particularly an issue with this repo... but I think Docker-Compose v3 has changed networking a bit since it was written here and the docker-compose.yml file should probably specify container networks instead of leaving them out.

As you probably know alredy, --network host runs containers on your primary network interface and as such exposes all container ports locally so that you don't have to use -p. Can't say I've tested this stack with that configuration, generally host network should be avoided.

If you'd like to share your modified docker-compose.yml file I might be able to help you get it working with Nginx 👍

from dockeryourxyzzy.

archer007 avatar archer007 commented on August 18, 2024

That would be awesome! Although I just used nginx as an example. I'm trying to get a Cards server up and running for a game with friends. I'm going to run it as a on-demand server only and it would be really nice to have it dockerized and deployable quickly regardless of future breaking changes to Maven, Tomcat, and the rest.

I was passing command-line arguments instead of customizing docker-compose.yml. Would that mean docker-compose.yml overrode my command line arguments?

I suppose if the default docker network is reachable via my regular network I could just add it to my router's route table and be able to test with the default recommended networking settings, but host networking sounded like it would be easier to troubleshoot and get up and running.

Sorry, I know I'm asking really basic questions. Thank you for helping!

from dockeryourxyzzy.

emcniece avatar emcniece commented on August 18, 2024

I was passing command-line arguments instead of customizing docker-compose.yml. Would that mean docker-compose.yml overrode my command line arguments?

Correct. If you specify command: in docker-compose.yml, or if you add commands to docker run ... in terminal, it will override CMD that is baked in to the Dockerfile. You can do it, just make sure you pass the entire command.

If you want to quickly make this accessible to your friends without adding exceptions to your router firewall, check out https://ngrok.com/ - it's a tunnel-as-a-service, and it even provides SSL certs. There's a containerized version at https://github.com/wernight/docker-ngrok.

I'll try and get an example compose for you, sit tight...

from dockeryourxyzzy.

emcniece avatar emcniece commented on August 18, 2024

Ok, pushed some updates to master. Check out the README and try the "Run with Docker-Compose" section, and make sure your docker-compose.yml file specifies emcniece/dockeryourxyzzy:3 or that you run docker pull emcniece/dockeryourxyzzy:latest.

from dockeryourxyzzy.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.