-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
33 lines (32 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
33 lines (32 loc) · 1.06 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
services:
crispasr:
image: ${CRISPASR_IMAGE:-crispasr-local:main}
build:
context: .
dockerfile: .devops/main.Dockerfile
ports:
- "${CRISPASR_HOST_PORT:-${CRISPASR_PORT:-8080}}:${CRISPASR_PORT:-8080}"
user: "${CRISPASR_UID:-1000}:${CRISPASR_GID:-1000}"
security_opt:
- no-new-privileges:true
volumes:
- ./models:/models
- crispasr-cache:/cache
environment:
CRISPASR_MODEL: ${CRISPASR_MODEL:-/models/model.gguf}
CRISPASR_BACKEND: ${CRISPASR_BACKEND:-}
CRISPASR_LANGUAGE: ${CRISPASR_LANGUAGE:-auto}
CRISPASR_PORT: ${CRISPASR_PORT:-8080}
CRISPASR_AUTO_DOWNLOAD: ${CRISPASR_AUTO_DOWNLOAD:-0}
CRISPASR_CACHE_DIR: ${CRISPASR_CACHE_DIR:-/cache}
CRISPASR_API_KEYS: ${CRISPASR_API_KEYS:-}
CRISPASR_EXTRA_ARGS: ${CRISPASR_EXTRA_ARGS:-}
healthcheck:
test: ["CMD-SHELL", "curl -fsS http://127.0.0.1:$${CRISPASR_PORT:-8080}/health >/dev/null"]
interval: 30s
timeout: 5s
retries: 5
start_period: 20s
restart: unless-stopped
volumes:
crispasr-cache: