-
Notifications
You must be signed in to change notification settings - Fork 28
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 922 Bytes
/
docker-compose.yml
File metadata and controls
44 lines (41 loc) · 922 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
44
services:
redis:
image: redis:7-alpine
restart: unless-stopped
api:
build: .
entrypoint: ["npx", "tsx", "src/server.ts"]
ports:
- "3000:3000"
depends_on:
- redis
env_file: .env
environment:
- REDIS_URL=redis://redis:6379
- JOBS_DIR=/app/jobs
volumes:
- jobs-data:/app/jobs
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/api/v1/health"]
interval: 30s
timeout: 5s
retries: 3
worker:
build: .
entrypoint: ["npx", "tsx", "src/worker.ts"]
depends_on:
- redis
env_file: .env
environment:
- REDIS_URL=redis://redis:6379
- JOBS_DIR=/app/jobs
shm_size: "2gb"
volumes:
- jobs-data:/app/jobs
- ./output:/output
- openreels-cache:/root/.openreels/cache
restart: unless-stopped
volumes:
jobs-data:
openreels-cache: