Skip to content

Commit

Permalink
Add Docker setup and image to README
Browse files Browse the repository at this point in the history
Included a Dockerfile and docker-compose.yml for setting up the Jerusalem Tunnel service. Also added an image to the README for better visualization.
  • Loading branch information
mjm918 committed Aug 15, 2024
1 parent dfe1fa2 commit c10d1b2
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 1 deletion.
Binary file added .assets/ss.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
10 changes: 10 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
FROM golang:1.22
LABEL authors="julfikar"

WORKDIR /app
COPY . .

RUN go build -o jerusalem-tunnel -v ./...
ENTRYPOINT ["./jerusalem-tunnel"]

EXPOSE 1024-65535
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Jerusalem Tunnel is a cross-platform `ngrok` alternative written in Go. It allows clients to reserve a port and complete
a handshake using a secret key shared between the server and the client, identified uniquely by a clientID.

![ss.png](.assets/ss.png)
## Features

- **Cross-Platform**: Works on Windows, macOS, and Linux.
Expand Down
14 changes: 14 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3.8'

services:
jerusalem-tunnel:
build: .
ports:
- "1024-2000:1024-2000"
- "8901:8901"
environment:
- SERVER_PORT=8901
- PORT_RANGE=1024...2000
- SECRET_KEY=2y6sUp8cBSfNDk7Jq5uLm0xHAIOb9ZGqE4hR1WVXtCwKjP3dYzvTn2QiFXe8rMb6
entrypoint: [ "./jerusalem-tunnel" ]
restart: always

0 comments on commit c10d1b2

Please sign in to comment.