mirror of
https://github.com/zoriya/Kyoo.git
synced 2025-05-24 02:02:36 -04:00
Add healthchecks on docker
This commit is contained in:
parent
a554b7681f
commit
9c6055a52e
7
.github/workflows/robot.yml
vendored
7
.github/workflows/robot.yml
vendored
@ -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: |
|
||||
|
@ -40,7 +40,8 @@ services:
|
||||
build: ./scanner
|
||||
restart: on-failure
|
||||
depends_on:
|
||||
- back
|
||||
back:
|
||||
condition: service_healthy
|
||||
env_file:
|
||||
- ./.env
|
||||
environment:
|
||||
|
@ -24,7 +24,8 @@ services:
|
||||
image: zoriya/kyoo_scanner:edge
|
||||
restart: on-failure
|
||||
depends_on:
|
||||
- back
|
||||
back:
|
||||
condition: service_healthy
|
||||
env_file:
|
||||
- ./.env
|
||||
environment:
|
||||
|
@ -24,7 +24,8 @@ services:
|
||||
build: ./scanner
|
||||
restart: on-failure
|
||||
depends_on:
|
||||
- back
|
||||
back:
|
||||
condition: service_healthy
|
||||
env_file:
|
||||
- ./.env
|
||||
environment:
|
||||
|
Loading…
x
Reference in New Issue
Block a user