Add healthchecks on docker

This commit is contained in:
Zoe Roux 2023-04-02 14:06:50 +09:00
parent a554b7681f
commit 9c6055a52e
4 changed files with 7 additions and 9 deletions

View File

@ -30,12 +30,7 @@ jobs:
- name: Start the service
run: |
docker-compose up -d
- name: Perform healthchecks
run: |
docker-compose ps -a
wget --retry-connrefused --retry-on-http-error=502 http://localhost:8901 #/api/healthcheck
docker-compose up -d --wait
- name: Run robot tests
run: |

View File

@ -40,7 +40,8 @@ services:
build: ./scanner
restart: on-failure
depends_on:
- back
back:
condition: service_healthy
env_file:
- ./.env
environment:

View File

@ -24,7 +24,8 @@ services:
image: zoriya/kyoo_scanner:edge
restart: on-failure
depends_on:
- back
back:
condition: service_healthy
env_file:
- ./.env
environment:

View File

@ -24,7 +24,8 @@ services:
build: ./scanner
restart: on-failure
depends_on:
- back
back:
condition: service_healthy
env_file:
- ./.env
environment: