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

docker-compose.yml #110

Open
holtwick opened this issue Mar 1, 2024 · 5 comments
Open

docker-compose.yml #110

holtwick opened this issue Mar 1, 2024 · 5 comments

Comments

@holtwick
Copy link

holtwick commented Mar 1, 2024

I made your great tool work on a https://github.com/NginxProxyManager/nginx-proxy-manager driven virtual server. Maybe you'd like to add some of the following to your project:

  1. Copy or clone this repo to the server
  2. Modify Dockerfile to run in server mode. Basically I changed the last line to ENTRYPOINT ["./bore", "server", "--min-port=8080", "--max-port=8080"]
  3. Add a docker-compose.yml and build and start it like docker compose up -d
# docker-compose.yml

version: '3'

services:
  tunnel:
    build: .
    restart: unless-stopped
    ports:
      - '7835:7835'

networks:
  default:
    external: true
    name: proxy

The networks line are specific to the proxy.

The port is required to get the protocol working.

In the proxy I configured like this:

20240301-203911-capture-holtwick@2x

Now with something like bore local 8080 --to tunnel.example.com I can fire it up on the client. HTTPS also works fine if configured in the Nginx Proxy Manager.

@lukenvn
Copy link

lukenvn commented Mar 12, 2024

Instead of rebuild the image you guys can try to use the command settings, it work perfect for me

version: '3'
services:
    tunnel:
        command: 'server --min-port 3333 --max-port 4444'
        image: ekzhang/bore
        ports:
            - '7835:7835'
networks:
    default:
        external: true
        name: proxy

@holtwick
Copy link
Author

holtwick commented Mar 12, 2024

Awesome, this way it is even simpler to use. Thanks!

Just this line:

command: 'server --min-port 3333 --max-port 4444'

needs to change to something like this:

command: 'server --min-port 8080 --max-port 8080'

in order to get a predictable port for the proxy, that will than be mapped to the public HTTPS port 443.


I still continue to use the self building script, because the machine I'm using it on has an ARM CPU.

@alanmilinovic
Copy link

alanmilinovic commented Mar 15, 2024

I am confused a little bit with the network part. What do I need to have for the network?

Error that I got: services.tunnel.networks.default Additional property external is not allowed

@holtwick
Copy link
Author

@ricardoapaes
Copy link

https://github.com/ricardoapaes/bore-server

I implemented this solution using nginx, then take a look.

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

4 participants