-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
65 lines (61 loc) · 1.38 KB
/
docker-compose.yml
File metadata and controls
65 lines (61 loc) · 1.38 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
64
65
version: '3.8'
services:
redis:
image: redis:7-alpine
container_name: automation-redis
ports:
- "6379:6379"
volumes:
- redis_data:/data
restart: unless-stopped
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 3s
retries: 3
api:
build: .
container_name: automation-api
ports:
- "4000:4000"
environment:
- NODE_ENV=production
- PORT=4000
- REDIS_HOST=redis
- REDIS_PORT=6379
- MAX_CONCURRENT=3
- CORS_ORIGINS=http://localhost:3000
# Add your Supabase credentials here
# - SUPABASE_URL=your_url
# - SUPABASE_ANON_KEY=your_key
depends_on:
redis:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:4000/health"]
interval: 30s
timeout: 10s
retries: 3
volumes:
- ./browser-profiles:/app/browser-profiles
worker:
build: .
container_name: automation-worker
environment:
- NODE_ENV=production
- REDIS_HOST=redis
- REDIS_PORT=6379
- WORKER_MODE=true
depends_on:
- redis
- api
restart: unless-stopped
command: node dist/workers/automation.worker.js
volumes:
- ./browser-profiles:/app/browser-profiles
deploy:
replicas: 2
volumes:
redis_data:
browser-profiles: