-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
32 lines (29 loc) · 1.04 KB
/
docker-compose.prod.yml
File metadata and controls
32 lines (29 loc) · 1.04 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
version: '3.8'
# Production deployment simulation override
# Use this with: docker-compose -f docker-compose.yml -f docker-compose.prod.yml up
services:
# JAC Server with production-like settings
jac-server:
build:
context: ./server
dockerfile: Dockerfile
environment:
- OPENAI_API_KEY=${OPENAI_API_KEY}
- DATABASE_HOST=mongodb+srv://v30793620:qFT9ofgVU2GPN5oA@cluster0.ry1lymm.mongodb.net/?retryWrites=true&w=majority&appName=Cluster0
- DATABASE_NAME=jaseci
- PYTHONUNBUFFERED=1
- PYTHONDONTWRITEBYTECODE=1
- JAC_ENV=production
volumes: [] # Remove volume mounts for production
restart: always
# React Frontend with production build
jac-webapp:
build:
context: ./client
dockerfile: Dockerfile
args:
VITE_API_URL: http://jac-server:8080 # Use service name for internal communication
environment:
- VITE_API_URL=http://localhost:8080 # External access still via localhost
volumes: [] # Remove volume mounts for production
restart: always