From 4760ab966a591e3c6903ddd94f42a1950b33185a Mon Sep 17 00:00:00 2001 From: ILoveYaToo Date: Sat, 18 Apr 2020 16:27:44 -0400 Subject: [PATCH] Fix deployment health checks --- .gitlab-ci.yml | 2 +- alpine/docker-compose.yml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index c0c9119..9dff660 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -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 diff --git a/alpine/docker-compose.yml b/alpine/docker-compose.yml index 7334403..c82ba4f 100644 --- a/alpine/docker-compose.yml +++ b/alpine/docker-compose.yml @@ -47,7 +47,7 @@ services: image: nginx container_name: postal_nginx ports: - - 0.0.0.0:80:80 + - 80:80 links: - postal depends_on: