-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
63 lines (61 loc) · 1.81 KB
/
docker-compose.yml
File metadata and controls
63 lines (61 loc) · 1.81 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
services:
app:
build:
context: .
dockerfile: Dockerfile.dev
args:
VITE_SITE_URL: ${VITE_SITE_URL:-http://localhost}
VITE_VIDEO_URL: ${VITE_VIDEO_URL:-http://localhost/demo.mp4}
VITE_CHROME_STORE_URL: ${VITE_CHROME_STORE_URL}
WEBSITE_PORT: ${WEBSITE_PORT:-3001}
EXTENSION_PORT: ${EXTENSION_PORT:-3002}
environment:
- NODE_ENV=${NODE_ENV:-development}
- WEBSITE_PORT=${WEBSITE_PORT:-3001}
- EXTENSION_PORT=${EXTENSION_PORT:-3002}
- CHROME_EXTENSION_ORIGIN=${CHROME_EXTENSION_ORIGIN}
- REDIS_URL=${REDIS_URL}
- GEMINI_API_KEY=${GEMINI_API_KEY}
- MODEL=${MODEL:-gemini-2.0-flash}
- INSTRUCTIONS=${INSTRUCTIONS:-"You are a helpful coding assistant for LeetCode problems."}
volumes:
- ./backend:/app/backend
- /app/backend/node_modules
- /app/frontend/website/node_modules
- website_dist:/app/frontend/website/dist
restart: unless-stopped
healthcheck:
test:
[
"CMD",
"wget",
"-q",
"--spider",
"http://localhost:${WEBSITE_PORT:-3001}/health",
]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
nginx:
image: nginx:stable-alpine
ports:
- "${NGINX_PORT:-80}:80"
environment:
- WEBSITE_PORT=${WEBSITE_PORT:-3001}
- EXTENSION_PORT=${EXTENSION_PORT:-3002}
volumes:
- ./nginx/default.conf.dev:/etc/nginx/templates/default.conf.template:ro
- website_dist:/usr/share/nginx/html:ro
depends_on:
app:
condition: service_healthy
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "-q", "--spider", "http://localhost/health"]
interval: 30s
timeout: 10s
retries: 3
start_period: 60s
volumes:
website_dist: