-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
27 lines (25 loc) · 878 Bytes
/
Copy pathdocker-compose.prod.yml
File metadata and controls
27 lines (25 loc) · 878 Bytes
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
# Production overlay — run with:
# docker compose -f docker-compose.yml -f docker-compose.prod.yml up -d
#
# Before deploying:
# 1. Create backend/.env with CORS_ORIGINS set to your domain
# 2. Set VITE_X_API_KEY build arg if you use API key auth
# 3. Ensure backend/app/models/ and protected_datasets/ are populated
services:
backend:
restart: unless-stopped
volumes: [] # Remove source-code mount; use the baked image
environment:
- CORS_ORIGINS=${CORS_ORIGINS}
env_file:
- backend/.env
frontend:
restart: unless-stopped
build:
target: prod
args:
- VITE_API_BASE=/fastapi
- VITE_X_API_KEY=${VITE_X_API_KEY:-}
ports: [ '8080:80' ]
volumes: [] # Remove source-code mount; serve via nginx
environment: []