Fix deployment health checks
This commit is contained in:
parent
0f3dbe9963
commit
4760ab966a
|
@ -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
|
||||||
|
|
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user