-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcompose.easyocr.yaml
52 lines (52 loc) · 1.15 KB
/
compose.easyocr.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
name: easyocr
services:
proxy:
image: "tinyproxy"
networks:
- external
- internal
volumes:
- ./tinyproxy.conf:/etc/tinyproxy/tinyproxy.conf
extra_hosts:
- "host.docker.internal:host-gateway"
http:
image: "caddy"
restart: unless-stopped
networks:
- external
- internal
depends_on:
- app
ports:
- 7863:7860
volumes:
- ./caddy.easyocr.Caddyfile:/etc/caddy/Caddyfile
extra_hosts:
- "host.docker.internal:host-gateway"
app:
image: "easyocr:v1"
restart: unless-stopped
networks:
- internal
environment:
- http_proxy=http://proxy:8118
- https_proxy=http://proxy:8118
- no_proxy=localhost,127.0.0.1
- GRADIO_SERVER_NAME=0.0.0.0
- GRADIO_SERVER_PORT=7860
- EASYOCR_ALLOWED_LANGS=
volumes:
- ./models/easyocr:/root/.EasyOCR/model:z
- ./easyocr/app.py:/app/app.py:z
- ./data:/app/outputs:z
deploy:
resources:
reservations:
devices:
- driver: nvidia
capabilities: [gpu]
count: all
networks:
external:
internal:
internal: true