-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
90 lines (86 loc) · 2.24 KB
/
docker-compose.yml
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
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
orion_initializer:
container_name: orion_initializer
build:
context: ./entities
depends_on:
- orion
networks:
- fiware
command: bin/sh -c "sh /entities/awaitForOrion.sh && sh /entities/createPredictionEntities.sh && sh /entities/createSubscriptions.sh && sh /entities/updateEntityLoop.sh"
environment:
- URL_CB=http://orion:1026
volumes:
- ./entities:/entities
mlflow-server:
image: ghcr.io/mlflow/mlflow:v2.0.1
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
train:
container_name: train
build:
context: ./prediction-job
ports:
- "3000:3000"
networks:
- fiware
environment:
- URL_CB=http://orion:1026
- FLASK_ENV=development
volumes:
- ./prediction-job:/prediction-job
predict:
container_name: predict
build:
context: ./prediction-job
ports:
- "3001:3001"
networks:
- fiware
environment:
- URL_CB=http://orion:1026
- FLASK_ENV=development
command: python predict.py
volumes:
- ./prediction-job:/prediction-job
networks:
fiware:
external: true
name: fiware