Skip to content

Commit

Permalink
Merge pull request #15 from alonisser/TASK/add_docker_compose_wait
Browse files Browse the repository at this point in the history
wait for yap
  • Loading branch information
cjer authored Dec 20, 2022
2 parents 8913c73 + bfd1320 commit 807fecf
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 807fecf

Please sign in to comment.