diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-24 14:49:46 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-24 14:49:46 +0100 |
| commit | 9f44f46a4cbf6857560acf567e2c0e93bd39012d (patch) | |
| tree | 2fa74e3f2dbf712497daca90a21f6f54be62d485 /ci/docker/docker-compose.yml | |
| parent | 920aa02f020c348ddfc3dd1c31684fcc5d386897 (diff) | |
Add CI docker images for testing with the server
Diffstat (limited to 'ci/docker/docker-compose.yml')
| -rw-r--r-- | ci/docker/docker-compose.yml | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/ci/docker/docker-compose.yml b/ci/docker/docker-compose.yml new file mode 100644 index 0000000..12ad767 --- /dev/null +++ b/ci/docker/docker-compose.yml @@ -0,0 +1,34 @@ +version: '3' + +networks: + eduvpn_network: + ipam: + driver: default + config: + - subnet: 172.20.0.0/24 + +services: + eduvpnserver: + build: + context: "." + dockerfile: 'ci/docker/eduvpn-server.docker' + tty: true + sysctls: + - net.ipv6.conf.all.disable_ipv6=0 + networks: + eduvpn_network: + ipv4_address: 172.20.0.5 + cap_add: # needed for wireguard + - NET_ADMIN + healthcheck: + test: ["CMD", "systemctl", "status", "wg-quick@wg0"] # Wait for wireguard to come online + interval: 5s + timeout: 10s + retries: 10 + gotest: + build: + context: "." + dockerfile: 'ci/docker/go-test.docker' + depends_on: + eduvpnserver: + condition: service_healthy |
