-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
110 lines (103 loc) · 2.3 KB
/
docker-compose.yml
File metadata and controls
110 lines (103 loc) · 2.3 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
106
107
108
109
110
version: '3.7'
services:
inference-redis:
container_name: inference-redis
image: redis:5
ports:
- "6379:6379"
networks:
- webnet
inference-api:
container_name: inference-api
build:
context: ../inference-api/.
dockerfile: Dockerfile
ports:
- "3001:3001"
environment:
- RELOAD_APP_ON_FILE_CHANGE=true
- REDIS_PORT=6379
- REDIS_HOST=inference-redis
- FRONT_END_PROTOCOL=http
- FRONT_END_HOST=localhost
- FRONT_END_PORT=3000
- GRPC_PROTO_PATH=/grcp-pkg/grcppkg/protos/server.proto
- MODEL_1_HOST=model1
- MODEL_1_PORT=50051
- MODEL_2_HOST=model2
- MODEL_2_PORT=50052
- API_PORT=3001
volumes:
- ../inference-api:/app
depends_on:
- "inference-redis"
- "model1"
- "model2"
networks:
- webnet
chrome-extension:
container_name: chrome-extension
build:
context: ../chrome-extension/.
dockerfile: Dockerfile
ports:
- "3000:3000"
environment:
- RELOAD_APP_ON_FILE_CHANGE=true
- NEXT_PUBLIC_SOCKER_IO_PROTOCOL=http
- NEXT_PUBLIC_SOCKER_IO_HOST=localhost
- NEXT_PUBLIC_SOCKER_IO_PORT=3001
- APP_PORT="3000"
volumes:
- ../chrome-extension:/app
networks:
- webnet
#grpcox:
# container_name: grpcox
# image: gusaul/grpcox:latest
# ports:
# - "6969:6969"
# networks:
# - webnet
grcp-pkg:
container_name: grcp-pkg
build:
context: ../grcp-pkg/.
dockerfile: Dockerfile
volumes:
- ../grcp-pkg:/grcp-pkg
networks:
- webnet
model1:
container_name: model1
build:
context: ../model1/.
dockerfile: Dockerfile
ports:
- "50051:50051"
environment:
- RPC_PORT=50051
- MODEL_ARTIFACT_DIR=/app/model1/models/OuluCASIA
- RELOAD_APP_ON_FILE_CHANGE=true
volumes:
- ../model1:/app
networks:
- webnet
model2:
container_name: model2
build:
context: ../model1/.
dockerfile: Dockerfile
ports:
- "50052:50052"
environment:
- RPC_PORT=50052
- MODEL_ARTIFACT_DIR=/app/model1/models/CK
- RELOAD_APP_ON_FILE_CHANGE=true
#volumes:
# - ../model1:/app
networks:
- webnet
networks:
webnet:
driver: bridge