-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
47 lines (44 loc) · 1.29 KB
/
docker-compose.yml
File metadata and controls
47 lines (44 loc) · 1.29 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
name: sipher
services:
api:
image: ghcr.io/sip-protocol/sipher:latest
container_name: sipher
restart: unless-stopped
ports:
- "5006:3000"
environment:
- NODE_ENV=production
- PORT=3000
- API_KEYS=${API_KEYS}
- ADMIN_API_KEY=${ADMIN_API_KEY}
- SOLANA_RPC_URL=${SOLANA_RPC_URL:-https://api.mainnet-beta.solana.com}
- CORS_ORIGINS=${CORS_ORIGINS:-https://sipher.sip-protocol.org,https://sip-protocol.org,https://app.sip-protocol.org}
- REDIS_URL=redis://redis:6379
- TRUST_PROXY=1
- LOG_LEVEL=info
- RATE_LIMIT_MAX=100
- RATE_LIMIT_WINDOW_MS=60000
depends_on:
redis:
condition: service_healthy
healthcheck:
test: ["CMD", "node", "-e", "fetch('http://localhost:3000/v1/ready').then(r=>{process.exit(r.ok?0:1)}).catch(()=>process.exit(1))"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
redis:
image: redis:7-alpine
container_name: sipher-redis
restart: unless-stopped
command: redis-server --appendonly yes --maxmemory 100mb --maxmemory-policy allkeys-lru
volumes:
- redis-data:/data
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 3
start_period: 5s
volumes:
redis-data: