-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
52 lines (45 loc) · 1.16 KB
/
docker-compose.yml
File metadata and controls
52 lines (45 loc) · 1.16 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
services:
redis:
image: redis:7-alpine
container_name: wsi-redis
restart: unless-stopped
command: redis-server --appendonly yes --maxmemory 2gb --maxmemory-policy allkeys-lru
volumes:
- redis_data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 3s
retries: 3
mem_limit: 16g
memswap_limit: 16g
wsi-browser:
build: .
container_name: wsi-browser
restart: unless-stopped
ports:
- "${WSI_BROWSER_PORT}:8010"
environment:
- WSI_CONFIG=/app/config.yml
- PYTHONUNBUFFERED=1
mem_limit: 16g
memswap_limit: 16g
volumes:
# Configuration
- ./config.yml:/app/config.yml:ro
# static files (logo)
- ./app/static:/app/app/static:ro
# Mount your slide directories (read-only)
- /path/to/slides:/path/to/slides:ro
depends_on:
redis:
condition: service_healthy
healthcheck:
test: ["CMD-SHELL", "curl -sf http://localhost:8010/health || exit 1"]
interval: 30s
timeout: 15s
retries: 2
start_period: 30s
volumes:
redis_data:
driver: local