Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Commit

Permalink
docker-compose.yml: Added dependency of kafka to dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
wagmarcel authored and nevets963 committed Feb 27, 2018
1 parent 4e8222f commit 9356dca
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ services:
- hbase
environment:
- ZK_CONNECT=hbase:2181
depends_on:
- hbase
gearpump:
build:
context: ./oisp-gearpump-rule-engine
Expand All @@ -69,15 +67,17 @@ services:
- gearpump
- nginx
- hbase
- kafka
depends_on:
- gearpump
- nginx
- hbase
- kafka
working_dir: /app
environment:
- VCAP_SERVICES=${VCAP_SERVICES}
- VCAP_APPLICATION=${VCAP_APPLICATION}
command: /bin/bash -c "./wait-for-it.sh gearpump:8090 -t 300 && ./wait-for-it.sh nginx:80 -t 300 && ./wait-for-it.sh backend:8080 -t 300 && sleep 5 && ./local-push-to-gearpump.sh"
command: /bin/bash -c "./wait-for-it.sh kafka:9092 -t 300 && ./wait-for-it.sh gearpump:8090 -t 300 && ./wait-for-it.sh nginx:80 -t 300 && ./wait-for-it.sh backend:8080 -t 300 && sleep 5 && ./local-push-to-gearpump.sh"
nginx:
build:
context: ./oisp-frontend/public-interface/nginx
Expand Down Expand Up @@ -123,7 +123,9 @@ services:
depends_on:
- postgres
- redis
command: /bin/sh -c "./wait-for-it.sh postgres:5432 -t 300 && ./wait-for-it.sh redis:6379 -t 300 && sleep 5 && ./scripts/docker-start.sh"
- websocket-server
- kafka
command: /bin/sh -c "./wait-for-it.sh postgres:5432 -t 300 && ./wait-for-it.sh redis:6379 -t 300 && ./wait-for-it.sh kafka:9092 -t 300 && ./wait-for-it.sh websocket-server:5000 -t 300 && sleep 5 && ./scripts/docker-start.sh"
volumes:
- ./oisp-frontend/public-interface:/app
- ./data/keys:/app/keys
Expand All @@ -141,7 +143,8 @@ services:
- hbase
depends_on:
- hbase
command: /bin/sh -c "./wait-for-it.sh hbase:2181 -t 300 && sleep 10 && make runjar"
- kafka
command: /bin/sh -c "./wait-for-it.sh hbase:2181 -t 300 && ./wait-for-it.sh kafka:9092 -t 300 && sleep 10 && make runjar"
working_dir: /app
environment:
- VCAP_SERVICES=${VCAP_SERVICES}
Expand Down

0 comments on commit 9356dca

Please sign in to comment.