-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
43 lines (41 loc) · 1.35 KB
/
Copy pathdocker-compose.yml
File metadata and controls
43 lines (41 loc) · 1.35 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
services:
backend:
build:
context: ./backend
image: rainbolt-backend
# Docker Desktop's built-in DNS resolver gets flaky under sustained load and
# intermittently fails to resolve Pinecone's host ("Name or service not
# known"). Pin reliable public resolvers to bypass it.
dns:
- 8.8.8.8
- 1.1.1.1
env_file:
- ./backend/.env
ports:
- "8000:8000"
volumes:
# Persist uploaded images across restarts
- ./backend/uploads:/app/uploads
# Persist the Kaggle dataset cache so ingest re-runs don't re-download shards
- kaggle-cache:/root/.cache/kagglehub
restart: unless-stopped
frontend:
build:
context: ./frontend
args:
# Public vars are baked into the bundle at build time
NEXT_PUBLIC_BACKEND_URL: ${NEXT_PUBLIC_BACKEND_URL:-http://localhost:8000}
NEXT_PUBLIC_BACKEND_WS: ${NEXT_PUBLIC_BACKEND_WS:-ws://localhost:8000}
NEXT_PUBLIC_SUPABASE_URL: ${NEXT_PUBLIC_SUPABASE_URL}
NEXT_PUBLIC_SUPABASE_ANON_KEY: ${NEXT_PUBLIC_SUPABASE_ANON_KEY}
image: rainbolt-frontend
environment:
# Shared secret the /api/upload proxy attaches when forwarding to the backend
- BACKEND_INTERNAL_KEY=${BACKEND_INTERNAL_KEY}
ports:
- "3000:3000"
depends_on:
- backend
restart: unless-stopped
volumes:
kaggle-cache: