Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Running in docker? #12

Open
maltegrosse opened this issue Mar 12, 2021 · 1 comment
Open

Running in docker? #12

maltegrosse opened this issue Mar 12, 2021 · 1 comment

Comments

@maltegrosse
Copy link

Is it possible to run it in a container using docker compose?

@joonas-fi
Copy link
Member

In theory yes, but I haven't made Docker image because my use case didn't involve Docker. If you'd like to help, it's quite easy to do it:

  • FROM alpine:latest
  • ADD rel/holepunch-client_something /usr/bin/holepunch-client
  • WORKDIR /app
  • CMD ["/usr/bin/holepunch-client"]
  • And then when running, mount the directory containing the config file to /app inside the container.

If it works and it suits your use case, hit me up and let's see if we'll make it official. I haven't done this because depending on the use case, running it inside the container might be a bit restrictive due to Docker's network namespacing.. I.e. if you're trying to expose another containers or some other static IP outside of the Docker host.. It really depends on what services you're trying to expose..

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants