Browse Source

enh: add minimum healthcheck to docker compose

Signed-off-by: thiswillbeyourgithub
<26625900+thiswillbeyourgithub@users.noreply.github.com>
pull/1830/head
thiswillbeyourgithub 4 months ago
parent
commit
03176d38b4
  1. 5
      docker-compose.beta.yml
  2. 5
      docker-compose.dev.yml
  3. 5
      docker-compose.yml

5
docker-compose.beta.yml

@ -32,6 +32,11 @@ services:
- net.ipv6.conf.all.disable_ipv6=0
- net.ipv6.conf.all.forwarding=1
- net.ipv6.conf.default.forwarding=1
healthcheck:
test: /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1"
interval: 1m
timeout: 5s
retries: 3
networks:
wg:

5
docker-compose.dev.yml

@ -21,6 +21,11 @@ services:
- INIT_PORT=51820
- INIT_USERNAME=testtest
- INIT_PASSWORD=Qweasdyxcv!2
healthcheck:
test: /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1"
interval: 1m
timeout: 5s
retries: 3
# folders should be generated inside container
volumes:

5
docker-compose.yml

@ -43,3 +43,8 @@ services:
sysctls:
- net.ipv4.ip_forward=1
- net.ipv4.conf.all.src_valid_mark=1
healthcheck:
test: /usr/bin/timeout 5s /bin/sh -c "/usr/bin/wg show | /bin/grep -q interface || exit 1"
interval: 1m
timeout: 5s
retries: 3

Loading…
Cancel
Save