Skip to content
Snippets Groups Projects
Commit a3133d94 authored by Sven-Ove Hänsel's avatar Sven-Ove Hänsel
Browse files

update docker-compose to wait for neo4j and ongdb sub

parent 03632f49
No related branches found
No related tags found
No related merge requests found
...@@ -64,7 +64,7 @@ services: ...@@ -64,7 +64,7 @@ services:
healthcheck: healthcheck:
test: ["CMD", "wget", "http://ongdb:7474"] test: ["CMD", "wget", "http://ongdb:7474"]
interval: 30s interval: 30s
timeout: 10s timeout: 20s
retries: 5 retries: 5
start_period: 30s start_period: 30s
...@@ -118,7 +118,7 @@ services: ...@@ -118,7 +118,7 @@ services:
healthcheck: healthcheck:
test: ["CMD", "wget", "http://neo4j:7474"] test: ["CMD", "wget", "http://neo4j:7474"]
interval: 30s interval: 30s
timeout: 10s timeout: 20s
retries: 5 retries: 5
start_period: 30s start_period: 30s
...@@ -171,6 +171,12 @@ services: ...@@ -171,6 +171,12 @@ services:
- db_host=bolt://ongdb:7687 - db_host=bolt://ongdb:7687
- mos_host=mos1 - mos_host=mos1
- mos_port=1883 - mos_port=1883
healthcheck:
test: ["CMD","ls"]
interval: 30s
timeout: 10s
retries: 2
start_period: 10s
depends_on: depends_on:
ongdb: ongdb:
condition: service_healthy condition: service_healthy
...@@ -207,6 +213,12 @@ services: ...@@ -207,6 +213,12 @@ services:
- neo4j_host=bolt://neo4j:7687 - neo4j_host=bolt://neo4j:7687
- mos_host=mos1 - mos_host=mos1
- mos_port=1883 - mos_port=1883
healthcheck:
test: ["CMD","ls"]
interval: 30s
timeout: 10s
retries: 2
start_period: 10s
depends_on: depends_on:
neo4j: neo4j:
condition: service_healthy condition: service_healthy
...@@ -229,16 +241,21 @@ services: ...@@ -229,16 +241,21 @@ services:
container_name: pub_cdm container_name: pub_cdm
image: lab.it.hs-hannover.de:4567/cwy-p8d-u1/ma_code/pub_cdm image: lab.it.hs-hannover.de:4567/cwy-p8d-u1/ma_code/pub_cdm
environment: environment:
- chunk_size_insert=2000 - lines_per_window=1000
- number_of_insertions=2000
- path_to_firstK=/var/lib/import/first1k.json - path_to_firstK=/var/lib/import/first1k.json
- path_data=/var/lib/import/ - path_data=/var/lib/import/
- sleep_time=1 - sleep_time=1
volumes: volumes:
- ./streaming/clients/pub/data:/var/lib/import - ./streaming/clients/pub/data:/var/lib/import
depends_on: depends_on:
- sub_neo4j sub_neo4j:
- sub_pg condition: service_healthy
sub_ongdb:
condition: service_healthy
sub_pg:
condition: service_started
sub_mem:
condition: service_started
volumes: volumes:
postgres: postgres:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment