feature: add rudimentary "wait for elasticsearch"

This commit is contained in:
Rainer Killinger
2019-03-12 16:21:00 +00:00
parent d3a9f38539
commit c609078e47

View File

@@ -1,4 +1,4 @@
version: '2'
version: '2.1'
services:
database:
image: registry.gitlab.com/openstapps/database:master
@@ -6,6 +6,12 @@ services:
- ./database:/usr/share/elasticsearch/data
expose:
- "9200"
restart: unless-stopped
healthcheck:
test: ["CMD", "nc", "-zv", "localhost", "9200"]
interval: 5s
timeout: 10s
retries: 20
backend:
image: registry.gitlab.com/openstapps/backend/default:master
@@ -22,6 +28,10 @@ services:
- "database"
labels:
- stapps.version=1.0.0
restart: unless-stopped
depends_on:
database:
condition: service_healthy
api:
image: registry.gitlab.com/openstapps/api/copy:v0.0.3