-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathdocker-compose.yml
39 lines (38 loc) · 999 Bytes
/
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
version: "3"
services:
backend:
container_name: annotation-service
build:
context: ./
dockerfile: Dockerfile
ports:
- "3002:3002" # Web Server
- "3001:3001" # GRPC Proxy Server
- "3000:3000" # GRPC Server
- "8000:8000"
- "8002:8002"
environment:
- SCM_DIR=/root/scm_result
- SERVICE_PORT=3000
- REDIS_URI=redis://redis:6379/0
- SERVICE_ADDR=$SERVICE_ADDR
- RESULT_DIR=/root/result
- ATOM_SERVER=mozi.ai:5005
working_dir: /root/annotation_service/
command: bash -c "circusd --log-level debug circus.ini"
volumes:
- $HOME/.mozi/prod:/opt
- $DATASET:/root/annotation_service/datasets
- $RESULT_DIR:/root/result
- $SSL_CERT:/etc
- $SNET_CERT:/ssl
frontend:
container_name: ui
build:
context: ./ui
dockerfile: Dockerfile
args:
- GRPC_ADDR=$GRPC_ADDR
- RESULT_ADDR=$RESULT_ADDR
ports:
- "3003:80" #annotation ui port