-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
71 lines (70 loc) · 1.82 KB
/
docker-compose.yml
File metadata and controls
71 lines (70 loc) · 1.82 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
version: '3'
services:
local_operations:
restart: always
image: ai-task-controller/lo-inferenceapp:latest
build:
context: .
dockerfile: application/Dockerfile
environment:
- HOST=0.0.0.0
- PORT=9050
- DB_PORT=27017
- DATA_FORMAT_FILE=format.json
- DATA_PIPELINE_FILE=transformation_pipeline.json
- DATA_FOLDER=/data
- PREPROCESSED_FOLDER=/preprocessed
- REPOSITORY_ADDRESS=http://flrepository:9012
- ORCHESTRATOR_SVR_ADDRESS=http://fl-orchestrator-app:5000
- ORCHESTRATOR_WS_ADDRESS=ws://host.docker.internal:8765
- WS_TIMEOUT=5
- FEDERATED_PORT=8080
- SERVER_ADDRESS=fl-training-collector_trainingmain_1
- DATABASE_NAME=db-0
- TOTAL_LOCAL_OPERATIONS=1
- HM_SECRET_FILE=secret.txt
- HM_PUBLIC_FILE=public.txt
- USER_INDEX=0
- FL_LOCAL_OP_DATA_FOLDER="./data"
networks:
- default
ports:
- "905${USER_INDEX}:9050"
- 9003:9000
- 30080:80
extra_hosts:
- "host.docker.internal:host-gateway"
depends_on:
- db
volumes:
- type: bind
source: ${FL_LOCAL_OP_DATA_FOLDER}
target: /data
- type: bind
source: ./preprocessed
target: /preprocessed
db:
container_name: "db-${USER_INDEX}"
build:
context: db
dockerfile: "Dockerfile.db"
restart: always
extra_hosts:
- "host.docker.internal:host-gateway"
networks:
- default
inferenceapp:
image: ai-task-controller/lo-inferenceapp:latest
restart: always
build:
context: .
dockerfile: "Dockerfile"
environment:
- REPOSITORY_ADDRESS=http://flrepository:9012
networks:
- default
ports:
- "50052:50051"
- "9001:9000"
extra_hosts:
- "host.docker.internal:host-gateway"