diff options
| author | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-25 12:23:28 +0100 |
|---|---|---|
| committer | jwijenbergh <jeroenwijenbergh@protonmail.com> | 2022-03-25 12:23:28 +0100 |
| commit | 955b320565faa072f284cf4156020ce5811979ad (patch) | |
| tree | 38801080fb2457d189647bcae3f62bee0964e0ca /ci/docker/docker-compose.yml | |
| parent | 192280cb3940eac9ea4a4ad7982c1e58f0138a42 (diff) | |
Set portal username and pass with env vars
Diffstat (limited to 'ci/docker/docker-compose.yml')
| -rw-r--r-- | ci/docker/docker-compose.yml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/ci/docker/docker-compose.yml b/ci/docker/docker-compose.yml index 12ad767..6c42e1f 100644 --- a/ci/docker/docker-compose.yml +++ b/ci/docker/docker-compose.yml @@ -1,5 +1,9 @@ version: '3' +x-common-env: &common-env + PORTAL_USER: ${PORTAL_USER} + PORTAL_PASS: ${PORTAL_PASS} + networks: eduvpn_network: ipam: @@ -20,6 +24,7 @@ services: ipv4_address: 172.20.0.5 cap_add: # needed for wireguard - NET_ADMIN + environment: *common-env healthcheck: test: ["CMD", "systemctl", "status", "wg-quick@wg0"] # Wait for wireguard to come online interval: 5s @@ -29,6 +34,7 @@ services: build: context: "." dockerfile: 'ci/docker/go-test.docker' + environment: *common-env depends_on: eduvpnserver: condition: service_healthy |
