Repository navigation
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
105 lines (99 loc) · 2.58 KB
/
Copy pathdocker-compose.yml
File metadata and controls
105 lines (99 loc) · 2.58 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: "3.5"
services:
mongo:
container_name: mongo
image: mongo:4.4
command: --nojournal
networks:
- fiware
ports:
- "27017:27017"
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=example
healthcheck:
test: |
host=`hostname --ip-address || echo '127.0.0.1'`;
mongo --quiet $host/test --eval 'quit(db.runCommand({ ping: 1 }).ok ? 0 : 2)' && echo 0 || echo 1
orion:
image: fiware/orion-ld:1.0.1
container_name: orion
depends_on:
- mongo
command: -dbhost mongo -dbuser root -dbpwd example #-logLevel DEBUG
ports:
- "1026:1026"
environment:
ORIONLD_MONGO_USER: root
ORIONLD_MONGO_PASSWORD: example
networks:
- fiware
healthcheck:
test: curl --fail -s http://orion:1026/version || exit 1
web:
container_name: web
build:
context: ./web
ports:
- "3000:3000"
depends_on:
- orion
networks:
- fiware
command: bash -c "sh /entities/awaitForOrion.sh && sh /entities/createPredictionEntities.sh && sh /entities/createSubscriptions.sh && npm start"
environment:
- URL_CB=http://orion:1026
- MONGO_URI=mongodb://root:example@mongo:27017/sth_test?authSource=admin
volumes:
- ./entities:/entities
spark-master:
build:
context: ./docker
target: master
container_name: spark-master
ports:
- "8081:8080"
- "7077:7077"
- "9001:9001"
environment:
- INIT_DAEMON_STEP=setup_spark
- "constraint:node==spark-master"
- "HOST_CB=orion"
- "SPARK_MASTER=spark://spark-master:7077"
networks:
- fiware
volumes:
- ./prediction-job:/prediction-job
spark-worker:
build:
context: ./docker
target: worker
container_name: spark-worker
depends_on:
- spark-master
ports:
- "8082:8081"
environment:
- "SPARK_MASTER=spark://spark-master:7077"
- "INIT_DAEMON_STEP=setup_spark"
- "constraint:node==spark-worker"
- "HOST_CB=orion"
- "SERVER=proxy"
networks:
- fiware
volumes:
- ./prediction-job:/prediction-job
mlflow-server:
image: ghcr.io/mlflow/mlflow:v1.30.0
container_name: mlflow_server
ports:
- "5001:5000"
command: mlflow server --host 0.0.0.0 --backend-store-uri sqlite:///prediction-job/mlflow/mlflow.db --default-artifact-root ./prediction-job/mlflow/artifacts
volumes:
- ./prediction-job:/prediction-job
networks:
- fiware
networks:
fiware:
external: true
name: fiware