Merge branch '1-backend-should-wait-for-the-database-to-be-ready' into 'master'

Resolve "Backend should "wait" for the database to be ready"

Closes #1

See merge request openstapps/minimal-deployment!1
This commit is contained in:
Rainer Killinger
2019-03-14 11:24:28 +00:00

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