From 4d6f15854bfba92bc73c3ea4a62c6d5820a5b380 Mon Sep 17 00:00:00 2001 From: Adam Date: Mon, 2 Nov 2020 04:27:41 +0200 Subject: [PATCH] Add OVPN example --- .gitignore | 1 + daemon/docker-compose.ovpn.yml | 23 +++++++++++++++++++++++ scheduler/docker-compose.ovpn.yml | 20 ++++++++++++++++++++ scheduler/docker-compose.yml | 7 ++----- 4 files changed, 46 insertions(+), 5 deletions(-) create mode 100644 .gitignore create mode 100644 daemon/docker-compose.ovpn.yml create mode 100644 scheduler/docker-compose.ovpn.yml 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" +