-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
67 lines (62 loc) · 1.8 KB
/
docker-compose.yml
File metadata and controls
67 lines (62 loc) · 1.8 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
66
67
# Production Docker Compose for Render
# Deploy backend and Kestra together
# Frontend is deployed separately on Vercel
services:
kestra:
image: kestra/kestra:latest
container_name: redloop-kestra
command: server local --flow-path=/app/flows
user: root
ports:
- "8080:8080"
- "8081:8081"
environment:
- KESTRA_CONFIGURATION_PATH=/app/confs/application.yaml
- KESTRA_SERVER_PREVIEW_ENABLED=true
# Secrets passed via Render environment variables
- SECRET_GEMINI_API_KEY=${GEMINI_API_KEY}
volumes:
- kestra-data:/app/storage
- /var/run/docker.sock:/var/run/docker.sock
- /tmp/kestra-wd:/tmp/kestra-wd
- ./kestra/application.yaml:/app/confs/application.yaml:ro
- ./kestra/flows:/app/flows:ro
restart: always
healthcheck:
test: [ "CMD", "curl", "-sf", "http://localhost:8080/api/v1/configs" ]
interval: 30s
timeout: 10s
retries: 5
start_period: 60s
backend:
build:
context: ./backend
dockerfile: Dockerfile
container_name: redloop-backend
ports:
- "8000:8000"
environment:
- PYTHONUNBUFFERED=1
- KESTRA_URL=http://kestra:8080
- LOG_LEVEL=INFO
# Production CORS - set your Vercel frontend URL
# For local testing, localhost:3000 is included by default
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS:-http://localhost:3000,https://redloop.vercel.app}
volumes:
- ./prompts:/app/prompts:ro
depends_on:
kestra:
condition: service_healthy
restart: always
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:8000/api/health" ]
interval: 30s
timeout: 10s
retries: 3
start_period: 15s
volumes:
kestra-data:
driver: local
networks:
default:
name: redloop-prod-network