-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
102 lines (96 loc) · 2.28 KB
/
Copy pathdocker-compose.yml
File metadata and controls
102 lines (96 loc) · 2.28 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: '3.9'
services:
# Main application service
llmployable:
build: .
container_name: llmployable-app
ports:
- "5000:5000"
environment:
ENVIRONMENT: production
HOST: 0.0.0.0
PORT: 5000
DEBUG: "false"
LOG_LEVEL: INFO
REDIS_URL: redis://redis:6379/0
DATABASE_URL: mongodb://mongodb:27017/llmployable
DATABASE_NAME: llmployable
DATABASE_HOST: mongodb
DATABASE_PORT: 27017
GEMINI_API_KEY: ${GEMINI_API_KEY}
GITHUB_TOKEN: ${GITHUB_TOKEN}
depends_on:
- redis
- mongodb
volumes:
- ./logs:/app/logs
- ./uploads:/app/uploads
- ./temp:/app/temp
networks:
- llmployable-network
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
# Redis for caching
redis:
image: redis:7-alpine
container_name: llmployable-redis
ports:
- "6379:6379"
volumes:
- redis-data:/data
networks:
- llmployable-network
restart: unless-stopped
command: redis-server --appendonly yes
healthcheck:
test: ["CMD", "redis-cli", "ping"]
interval: 10s
timeout: 5s
retries: 5
# MongoDB database
mongodb:
image: mongo:7
container_name: llmployable-mongodb
environment:
MONGO_INITDB_ROOT_USERNAME: admin
MONGO_INITDB_ROOT_PASSWORD: admin
MONGO_INITDB_DATABASE: llmployable
ports:
- "27017:27017"
volumes:
- mongodb-data:/data/db
- mongodb-config:/data/configdb
networks:
- llmployable-network
restart: unless-stopped
healthcheck:
test: echo 'db.runCommand("ping").ok' | mongosh localhost:27017/test --quiet
interval: 10s
timeout: 5s
retries: 5
command: mongod --auth
# Nginx reverse proxy (optional, for production-like setup)
nginx:
image: nginx:alpine
container_name: llmployable-nginx
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- llmployable
networks:
- llmployable-network
restart: unless-stopped
volumes:
redis-data:
mongodb-data:
mongodb-config:
networks:
llmployable-network:
driver: bridge