-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
81 lines (75 loc) · 1.89 KB
/
docker-compose.yml
File metadata and controls
81 lines (75 loc) · 1.89 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
version: '3.8'
services:
godel:
image: godel:latest
build:
context: .
dockerfile: Dockerfile
container_name: godel-dev
restart: unless-stopped
ports:
- "7373:7373"
# SECURITY: Set GODEL_API_KEY in .env file, not here
# Example: echo "GODEL_API_KEY=$(node -e "console.log('godel_live_' + require('crypto').randomBytes(32).toString('hex'))")" >> .env
environment:
- NODE_ENV=development
- PORT=7373
- GODEL_API_KEY=${GODEL_API_KEY:?Error: GODEL_API_KEY environment variable must be set}
- DATABASE_PATH=/data/godel.db
- LOG_LEVEL=debug
volumes:
- ./godel.db:/data/godel.db
- ./logs:/app/logs
depends_on:
- redis
networks:
- godel-network
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:7373/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 10s
redis:
image: redis:7-alpine
container_name: godel-redis
restart: unless-stopped
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- godel-network
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 30s
timeout: 10s
retries: 3
# Optional: Admin UI
admin-ui:
image: godel-admin:latest
container_name: godel-admin
restart: unless-stopped
ports:
- "3000:3000"
environment:
- GODEL_API_URL=http://godel:7373
- GODEL_API_KEY=${GODEL_API_KEY:?Error: GODEL_API_KEY environment variable must be set}
depends_on:
- godel
networks:
- godel-network
profiles:
- ui
volumes:
redis-data:
driver: local
networks:
godel-network:
driver: bridge
# Development shortcuts
# Start: docker-compose up -d
# Stop: docker-compose down
# View logs: docker-compose logs -f godel
# Restart: docker-compose restart godel
# Scale: docker-compose up -d --scale godel=3