-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
39 lines (38 loc) · 1.12 KB
/
docker-compose.yml
File metadata and controls
39 lines (38 loc) · 1.12 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
services:
sentinel:
build:
context: .
dockerfile: Dockerfile
args:
PRELOAD_SEMANTIC_MODEL: ${PRELOAD_SEMANTIC_MODEL:-true}
PRELOAD_NEURAL_MODEL: ${PRELOAD_NEURAL_MODEL:-true}
image: sentinel-protocol:latest
container_name: sentinel-protocol
command: ["start", "--config", "/etc/sentinel/sentinel.yaml", "--port", "8787"]
ports:
- "8787:8787"
environment:
NODE_ENV: production
SENTINEL_HOME: /var/lib/sentinel
SENTINEL_RAPIDAPI_KEY: ${SENTINEL_RAPIDAPI_KEY:-}
volumes:
- ./config/sentinel.yaml:/etc/sentinel/sentinel.yaml:ro
- sentinel-data:/var/lib/sentinel
- sentinel-models:/home/sentinel/.sentinel/models
read_only: true
tmpfs:
- /tmp:size=64m,noexec,nosuid,nodev
security_opt:
- no-new-privileges:true
cap_drop:
- ALL
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "node ./cli/sentinel.js status --json | grep -q '\"service_status\": \"running\"'"]
interval: 30s
timeout: 5s
retries: 3
start_period: 20s
volumes:
sentinel-data:
sentinel-models: