-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathdocker-compose.yaml
86 lines (81 loc) · 2.07 KB
/
docker-compose.yaml
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
version: '3.8'
services:
nginx:
container_name: nginx
build:
context: .
dockerfile: DockerfileNginx
ports:
- "80:80"
networks:
- app-network
extra_hosts:
- "host.docker.internal:host-gateway"
backend:
container_name: backend
build:
context: ./backend
dockerfile: Dockerfile
ports:
- "5000:5000"
volumes:
- ./comparisons.db:/app/comparisons.db
- ./users.db:/app/users.db
- ./backend/.env:/app/.env
deploy:
resources:
reservations:
devices:
- driver: nvidia
count: 1
capabilities: [gpu]
environment:
- NVIDIA_VISIBLE_DEVICES=all
- NVIDIA_DRIVER_CAPABILITIES=compute,utility
# GitHub OAuth
- GITHUB_CLIENT_ID=[fill in]
- GITHUB_CLIENT_SECRET=f[fill in]
- GITHUB_CALLBACK_URL=[fill in]
# Model Configuration
- BASE_MODEL_NAME=Qwen/Qwen2.5-Coder-0.5B
- FINETUNED_MODEL_NAME=stacklok/Qwen2.5-Coder-0.5B-codegate
- FRONTEND_URL=[fill in]
# Access Control
- ALLOWED_USERS=ChrisJBurns,lukehinds,evankanderson
- ADMIN_USERS=ChrisJBurns,lukehinds,evankanderson
# Development Settings
- WATCHFILES_FORCE_POLLING=false
- WATCHFILES_IGNORE_PATHS=*/unsloth_compiled_cache/*
restart: unless-stopped
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- app-network
frontend:
container_name: frontend
build:
context: ./frontend
dockerfile: Dockerfile
ports:
- "3000:3000"
restart: unless-stopped
volumes:
- ./frontend/.env:/app/.env
environment:
- NEXT_PUBLIC_BACKEND_URL=http://backend:5000
- NEXT_PUBLIC_API_URL=http://backend:5000
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:3000/"]
interval: 30s
timeout: 10s
retries: 3
start_period: 40s
networks:
- app-network
networks:
app-network:
driver: bridge