Fix deployment health checks
This commit is contained in:
parent
0f3dbe9963
commit
4760ab966a
|
@ -45,7 +45,7 @@ test-docker-alpine:
|
|||
- cd alpine
|
||||
- docker load -i postal-alpine-container.tar
|
||||
- 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:
|
||||
- cd alpine
|
||||
- docker-compose rm -sfv
|
||||
|
|
|
@ -47,7 +47,7 @@ services:
|
|||
image: nginx
|
||||
container_name: postal_nginx
|
||||
ports:
|
||||
- 0.0.0.0:80:80
|
||||
- 80:80
|
||||
links:
|
||||
- postal
|
||||
depends_on:
|
||||
|
|
Loading…
Reference in New Issue
Block a user