-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (37 loc) · 968 Bytes
/
docker-compose.yml
File metadata and controls
43 lines (37 loc) · 968 Bytes
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
version: '3.8'
services:
throttlecrab:
image: lazureykis/throttlecrab:latest
container_name: throttlecrab-server
ports:
- "8080:8080" # HTTP
- "50051:50051" # gRPC
- "6379:6379" # Redis
environment:
# Transport configuration
THROTTLECRAB_HTTP: "true"
THROTTLECRAB_GRPC: "true"
THROTTLECRAB_REDIS: "true"
# Store configuration
THROTTLECRAB_STORE: "adaptive"
THROTTLECRAB_STORE_CAPACITY: "100000"
# Logging
THROTTLECRAB_LOG_LEVEL: "info"
# Resource limits
deploy:
resources:
limits:
cpus: '2'
memory: 512M
reservations:
cpus: '0.5'
memory: 128M
# Health check
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8080/health"]
interval: 30s
timeout: 3s
retries: 3
start_period: 10s
# Restart policy
restart: unless-stopped