Skip to content

Commit

Permalink
Add OVPN example
Browse files Browse the repository at this point in the history
  • Loading branch information
GTANAdam committed Nov 2, 2020
1 parent 6a4ea12 commit 4d6f158
Show file tree
Hide file tree
Showing 4 changed files with 46 additions and 5 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.ovpn
23 changes: 23 additions & 0 deletions daemon/docker-compose.ovpn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
version: '2.2'
services:
vpn:
image: dperson/openvpn-client
restart: always
cap_add:
- NET_ADMIN
volumes:
- ./vpn:/vpn

iceccd:
image: adambh/docker-iceccd
container_name: iceccd
restart: always
depends_on:
- vpn
network_mode: "service:vpn"
environment:
- USE_SCHEDULER=172.26.0.3
# cpuset: "0"
# cpu_percent: 100
# logging:
# driver: "none"
20 changes: 20 additions & 0 deletions scheduler/docker-compose.ovpn.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
version: '2.2'
services:
icecc-scheduler:
image: adambh/docker-icecc-scheduler
container_name: icecc-scheduler
restart: always
network_mode: "service:openvpn"
depends_on:
- openvpn

openvpn:
image: kylemanna/openvpn
container_name: icecc-openvpn
restart: always
cap_add:
- NET_ADMIN
ports:
- "1194:1194/udp"
volumes:
- ./openvpn-data/conf:/etc/openvpn
7 changes: 2 additions & 5 deletions scheduler/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,7 @@ services:
image: adambh/docker-icecc-scheduler
container_name: icecc-scheduler
restart: always
network_mode: "host"
ports:
- 8765
network_mode: "host"
# cpuset: "0"
# cpu_percent: 100
# logging:
# driver: "none"

0 comments on commit 4d6f158

Please sign in to comment.