diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..2e66e21 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +*.ovpn \ No newline at end of file diff --git a/daemon/docker-compose.ovpn.yml b/daemon/docker-compose.ovpn.yml new file mode 100644 index 0000000..711ea2c --- /dev/null +++ b/daemon/docker-compose.ovpn.yml @@ -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" \ No newline at end of file diff --git a/scheduler/docker-compose.ovpn.yml b/scheduler/docker-compose.ovpn.yml new file mode 100644 index 0000000..6d62916 --- /dev/null +++ b/scheduler/docker-compose.ovpn.yml @@ -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 \ No newline at end of file diff --git a/scheduler/docker-compose.yml b/scheduler/docker-compose.yml index 00dfd35..d0c1151 100644 --- a/scheduler/docker-compose.yml +++ b/scheduler/docker-compose.yml @@ -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" +