-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
44 lines (41 loc) · 1.01 KB
/
Copy pathdocker-compose.yml
File metadata and controls
44 lines (41 loc) · 1.01 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
version: '3.8'
services:
vicky-app:
build: .
ports:
- "8000:8000"
environment:
- PORT=8000
- PYTHONUNBUFFERED=1
- GEMINI_API_KEY=${GEMINI_API_KEY}
- DISCORD_WEBHOOK=${DISCORD_WEBHOOK}
- GITHUB_TOKEN=${GITHUB_TOKEN}
- GITHUB_USERNAME=${GITHUB_USERNAME}
- ADMIN_KEY=${ADMIN_KEY}
volumes:
- ./uploads:/app/uploads
- ./temp_files:/app/temp_files
- ./static:/app/static:ro
# Mount templates as writable for dynamic generation
- templates_data:/app/templates
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/api/info"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
# Optional: Add nginx reverse proxy for production
nginx:
image: nginx:alpine
ports:
- "80:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on:
- vicky-app
restart: unless-stopped
profiles:
- production
volumes:
templates_data: