-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
53 lines (50 loc) · 1.06 KB
/
docker-compose.yml
File metadata and controls
53 lines (50 loc) · 1.06 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
version: '3.8'
services:
redis:
image: redis:7-alpine
ports:
- "6379:6379"
command: redis-server --maxmemory 512mb --maxmemory-policy allkeys-lru
healthcheck:
test: [ "CMD", "redis-cli", "ping" ]
interval: 5s
timeout: 3s
retries: 5
api:
build:
context: .
dockerfile: docker/Dockerfile.api
ports:
- "8000:8000"
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- JOB_TTL=3600
depends_on:
redis:
condition: service_healthy
restart: unless-stopped
worker:
build:
context: .
dockerfile: docker/Dockerfile
environment:
- REDIS_HOST=redis
- REDIS_PORT=6379
- POLL_INTERVAL=2
- MAX_CLICKS=10
- MAX_DEPTH=3
- MAX_RUNTIME=300
- GEMINI_API_KEY=${GEMINI_API_KEY:-}
depends_on:
redis:
condition: service_healthy
restart: unless-stopped
deploy:
resources:
limits:
cpus: '2'
memory: 2G
reservations:
cpus: '1'
memory: 1G