Fix deployment health checks

This commit is contained in:
ILoveYaToo 2020-04-18 16:27:44 -04:00
parent 0f3dbe9963
commit 4760ab966a
2 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ test-docker-alpine:
- cd alpine - cd alpine
- docker load -i postal-alpine-container.tar - docker load -i postal-alpine-container.tar
- docker-compose up -d - docker-compose up -d
- for i in {1..20}; do [ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ] && break || sleep 30; done - for i in {1..20}; do [ $(docker inspect postal | jq '.[].State.Health.Status') == "healthy" ] && break || sleep 15; done
after_script: after_script:
- cd alpine - cd alpine
- docker-compose rm -sfv - docker-compose rm -sfv

View File

@ -47,7 +47,7 @@ services:
image: nginx image: nginx
container_name: postal_nginx container_name: postal_nginx
ports: ports:
- 0.0.0.0:80:80 - 80:80
links: links:
- postal - postal
depends_on: depends_on: