-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
46 lines (38 loc) · 1.17 KB
/
docker-compose.yml
File metadata and controls
46 lines (38 loc) · 1.17 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
# Define memory limit in one place
x-memory-limit: &memory_limit 20G
services:
rteb:
build:
context: .
dockerfile: Dockerfile
container_name: rteb
# Memory limits
deploy:
resources:
limits:
memory: *memory_limit
reservations:
memory: *memory_limit
# For Docker Desktop on Mac, use this instead:
mem_limit: *memory_limit
memswap_limit: *memory_limit
# Volumes for persisting data and results
volumes:
- ./data:/app/data:ro # Data is mounted as read-only for better performance
- ./api_keys:/app/api_keys:ro
- ./output:/app/output # Mount output directory to persist results
- ./frank_output:/app/frank_output # Mount additional output if needed
# Security options
security_opt:
- no-new-privileges:true
# Logging with size limits to prevent disk space issues
logging:
driver: "json-file"
options:
max-size: "100m"
max-file: "3"
# Restart policy - don't restart automatically
restart: "no"
# Environment variables
environment:
- NVIDIA_VISIBLE_DEVICES=${NVIDIA_VISIBLE_DEVICES:-none}