-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
122 lines (115 loc) · 2.82 KB
/
docker-compose.yaml
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
111
112
113
114
115
116
117
118
119
120
121
122
version: "2"
services:
faster_rcnn_detec_receipt:
build:
context: ./faster_rcnn_detec_receipt_fast_api
dockerfile: ./dockerfile
networks:
- service_net
restart: unless-stopped
container_name: receipt_detect
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ["0"]
capabilities: [gpu]
key_information_extraction_receipt:
build:
context: ./key_information_extraction_api
dockerfile: ./Dockerfile
networks:
- service_net
restart: unless-stopped
container_name: receipt_kie
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ["0"]
capabilities: [gpu]
paddlepaddle_detect_recepit:
build:
context: ./receipt_paddle_ocr
dockerfile: ./Dockerfile
networks:
- service_net
restart: unless-stopped
container_name: receipt_detect_text
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ["0"]
capabilities: [gpu]
vietocr_receipt_tensor_trt:
build:
context: ./vietocr_receipt_fast_api_trt
dockerfile: ./dockerfile
networks:
- service_net
restart: unless-stopped
container_name: receipt_recognize_text
deploy:
resources:
reservations:
devices:
- driver: nvidia
device_ids: ["0"]
capabilities: [gpu]
intergrate:
build:
context: intergrate_receipt
dockerfile: ./Dockerfile
ports:
- "5004:5004"
networks:
- service_net
restart: unless-stopped
environment:
- MONGODB_USER=${MONGODB_USERNAME}
- MONGODB_PASSWORD=${MONGODB_PASSWORD}
- MONGODB_HOST=${MONGODB_HOST}
- MONGODB_PORT=${MONGODB_PORT}
container_name: receipt_intergrate
depends_on:
- vietocr_receipt_tensor_trt
- faster_rcnn_detec_receipt
- paddlepaddle_detect_recepit
- key_information_extraction_receipt
nginx:
image: nginx:latest
volumes:
- ./config/nginx.conf:/etc/nginx/nginx.conf
ports:
- "5003:80"
restart: unless-stopped
container_name: receipt_nginx
depends_on:
- intergrate
networks:
- service_net
db:
image: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=${MONGODB_USERNAME}
- MONGO_INITDB_ROOT_PASSWORD=${MONGODB_PASSWORD}
- MONGO_INITDB_DATABASE=${MONGODB_DATABASE}
ports:
- 27017:27017
restart: unless-stopped
depends_on:
- intergrate
networks:
- service_net
volumes:
- mongodata:/data/db
container_name: receipt_db_logging
networks:
service_net:
driver: bridge
volumes:
mongodata: