[fix] docker compose should wait for es

This commit is contained in:
alban 2020-05-27 14:58:50 +02:00
parent 77ccaef87d
commit a73fdc3460
2 changed files with 84 additions and 1 deletions

View file

@ -26,9 +26,12 @@ services:
app:
env_file: .env
build: ../
build: ../../
image: albancrommer/changelog-server:latest
ports:
- "3000:3000"
depends_on:
- es
command: ["./system/wait-for", "-t", "5", "es:9200", "--", "node", "index.js"]
read_only: true