-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Docker setup and image to README
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
Showing
4 changed files
with
25 additions
and
1 deletion.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |