refactor: remove health checks on startup

This commit is contained in:
Michel Jonathan Schmitz
2019-07-25 09:54:09 +02:00
parent 27a48dd168
commit 23f4f2de2f

View File

@@ -1,4 +1,4 @@
version: '2.1' version: '3.7'
services: services:
database: database:
image: registry.gitlab.com/openstapps/database:master image: registry.gitlab.com/openstapps/database:master
@@ -7,11 +7,6 @@ services:
expose: expose:
- "9200" - "9200"
restart: unless-stopped restart: unless-stopped
healthcheck:
test: ["CMD", "nc", "-zv", "localhost", "9200"]
interval: 5s
timeout: 10s
retries: 20
backend: backend:
image: registry.gitlab.com/openstapps/backend/default:master image: registry.gitlab.com/openstapps/backend/default:master
@@ -30,8 +25,7 @@ services:
- stapps.version=1.0.0 - stapps.version=1.0.0
restart: unless-stopped restart: unless-stopped
depends_on: depends_on:
database: - database
condition: service_healthy
api: api:
image: registry.gitlab.com/openstapps/api/copy:v0.0.3 image: registry.gitlab.com/openstapps/api/copy:v0.0.3