Skip to content

Commit

Permalink
wait for yap
Browse files Browse the repository at this point in the history
  • Loading branch information
alonisser committed Dec 2, 2022
1 parent 8913c73 commit bfd1320
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,19 @@ services:
- YAP_API_HOST=yap
- YAP_API_PORT=8000
depends_on:
- yap
yap:
condition: service_healthy

yap:
image: cjer/yap
build: ./yap_docker
working_dir: /yap/src/yap
command: ./yap api
healthcheck:
test: ["CMD", "curl", "-s", "-X" ,"GET", "-H", "'Content-Type: application/json'", "-d'{\"text\": \"גנן גידל דגן בגן \"}'", "localhost:8000/yap/heb/joint"]
interval: 30s
timeout: 10s
retries: 10
# add this if you want yap available externally as well
# ports:
# - "8000:8000"
# - "8000:8000"

0 comments on commit bfd1320

Please sign in to comment.