-
Notifications
You must be signed in to change notification settings - Fork 960
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
54 lines (51 loc) · 1.42 KB
/
docker-compose.yml
File metadata and controls
54 lines (51 loc) · 1.42 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
services:
ollama:
image: ollama/ollama:latest
ports:
- "127.0.0.1:11434:11434" # or "127.0.0.1:11435:11434"
volumes:
- ollama-data:/root/.ollama
environment:
- OLLAMA_HOST=0.0.0.0
healthcheck:
test: ["CMD", "ollama", "list"]
interval: 10s
timeout: 10s
retries: 30 # ~5 minutes total
start_period: 60s
presidio-anonymizer:
image: ${REGISTRY_NAME}/${IMAGE_PREFIX}presidio-anonymizer${TAG}
build:
context: ./presidio-anonymizer
cache_from:
- type=registry,ref=${REGISTRY_NAME}/${IMAGE_PREFIX}presidio-anonymizer:latest
environment:
- PORT=5001
ports:
- "5001:5001"
presidio-analyzer:
image: ${REGISTRY_NAME}/${IMAGE_PREFIX}presidio-analyzer${TAG}
build:
context: ./presidio-analyzer
cache_from:
- type=registry,ref=${REGISTRY_NAME}/${IMAGE_PREFIX}presidio-analyzer:latest
environment:
- PORT=5001
- OLLAMA_HOST=http://ollama:11434
ports:
- "5002:5001"
depends_on:
ollama:
condition: service_healthy
presidio-image-redactor:
image: ${REGISTRY_NAME}/${IMAGE_PREFIX}presidio-image-redactor${TAG}
build:
context: ./presidio-image-redactor
cache_from:
- type=registry,ref=${REGISTRY_NAME}/${IMAGE_PREFIX}presidio-image-redactor:latest
environment:
- PORT=5001
ports:
- "5003:5001"
volumes:
ollama-data: