[fix] docker compose should wait for es
This commit is contained in:
parent
77ccaef87d
commit
a73fdc3460
2 changed files with 84 additions and 1 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue