Skip to content

Commit

Permalink
Update composefile commends and add vpnclient compose
Browse files Browse the repository at this point in the history
  • Loading branch information
weidi committed Jan 28, 2025
1 parent d4d4c07 commit be411d3
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 14 deletions.
22 changes: 14 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,13 @@ Others are commented out in the docker-compose example.

## Usage docker-compose

The same command can be achieved by docker-compose, the docker compose file is in the repository
The same command can be achieved by docker-compose, the docker compose file is in the repository.
You can specify the respective docker-compose.yaml like so:

`docker-compose -f docker-compose.vpnclient.yaml up -d`

By default the docker-compose.yaml is used:

```
version: '3'
Expand All @@ -54,14 +60,14 @@ services:
- NET_ADMIN
restart: always
ports:
- # 53:53 #DNS tunneling
#- 53:53 #DNS tunneling
- 443:443 #Management and HTTPS tunneling
- 992:992 #HTTPS tunneling
- # 1194:1194/udp #OpenVPN
- 5555:5555 #HTTPS tunneling
- # 500:500/udp #IPsec/L2TP
- # 4500:4500/udp #IPsec/L2TP
- # 1701:1701/udp #IPsec/L2TP
#- 992:992 #HTTPS tunneling
#- 1194:1194/udp #OpenVPN
#- 5555:5555 #HTTPS tunneling
#- 500:500/udp #IPsec/L2TP
#- 4500:4500/udp #IPsec/L2TP
#- 1701:1701/udp #IPsec/L2TP
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
Expand Down
14 changes: 14 additions & 0 deletions docker-compose.vpnclient.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
version: '3'

services:
softether:
image: softethervpn/vpnclient:latest
cap_add:
- NET_ADMIN
restart: always
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
- "./softether_data:/var/lib/softether"
- "./softether_log:/var/log/softether"
# - "./adminip.txt:/var/lib/softether/adminip.txt:ro"
12 changes: 6 additions & 6 deletions docker-compose.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@ services:
- NET_ADMIN
restart: always
ports:
- # 53:53 #DNS tunneling
#- 53:53 #DNS tunneling
- 443:443 #Management and HTTPS tunneling
- 992:992 #HTTPS tunneling
- # 1194:1194/udp #OpenVPN
- 5555:5555 #HTTPS tunneling
- # 500:500/udp #IPsec/L2TP
- # 4500:4500/udp #IPsec/L2TP
- # 1701:1701/udp #IPsec/L2TP
#- 1194:1194/udp #OpenVPN
#- 5555:5555 #HTTPS tunneling
#- 500:500/udp #IPsec/L2TP
#- 4500:4500/udp #IPsec/L2TP
#- 1701:1701/udp #IPsec/L2TP
volumes:
- "/etc/localtime:/etc/localtime:ro"
- "/etc/timezone:/etc/timezone:ro"
Expand Down

0 comments on commit be411d3

Please sign in to comment.