forked from fredericd/coce
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (60 loc) · 1.39 KB
/
docker-compose.yml
File metadata and controls
63 lines (60 loc) · 1.39 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
55
56
57
58
59
60
61
62
63
services:
coce:
build: .
ports:
- "8080:8080"
environment:
- NODE_ENV=production
# Coce Configuration
- COCE_PORT=8080
- COCE_PROVIDERS=gb,aws,ol
- COCE_TIMEOUT=8000
# Redis Configuration
- REDIS_HOST=redis
- REDIS_PORT=6379
- REDIS_TIMEOUT=5000
# Cache Configuration
- COCE_CACHE_PATH=/app/covers
- COCE_CACHE_URL=http://localhost:8080/covers
# Provider Timeouts
- COCE_GB_TIMEOUT=86400
- COCE_AWS_TIMEOUT=86400
- COCE_OL_TIMEOUT=86400
- COCE_ORB_TIMEOUT=86400
# Provider Settings
- COCE_AWS_IMAGE_SIZE=MediumImage
- COCE_OL_IMAGE_SIZE=medium
- COCE_ORB_CACHE=true
# Optional: Set these if you have ORB credentials
# - COCE_ORB_USER=your_orb_user
# - COCE_ORB_KEY=your_orb_key
volumes:
- coce_covers:/app/covers
depends_on:
- redis
restart: unless-stopped
networks:
- coce-network
redis:
image: redis:7-alpine
command: redis-server --appendonly yes
volumes:
- redis_data:/data
ports:
- "6379:6379"
restart: unless-stopped
networks:
- coce-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 3s
retries: 3
volumes:
redis_data:
driver: local
coce_covers:
driver: local
networks:
coce-network:
driver: bridge