version: '3.8'
services:
# Unified Frontend and Nginx Gateway (Production Build)
ai-frontend:
build: ./ui/client-app
container_name: ai_unified_frontend
restart: unless-stopped
ports:
- "8002:80"
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf:ro
deploy:
resources:
limits:
cpus: '0.50'
memory: 512M
reservations:
memory: 128M
depends_on:
- ai-hub
# AI Hub Backend Service
ai-hub:
build: ./ai-hub
container_name: ai_hub_service
restart: unless-stopped
environment:
- PATH_PREFIX=/api/v1
- OIDC_CLIENT_ID=cortex-server
- OIDC_CLIENT_SECRET=aYc2j1lYUUZXkBFFUndnleZI
- OIDC_SERVER_URL=https://auth.jerxie.com
- OIDC_REDIRECT_URI=https://ai.jerxie.com/api/v1/users/login/callback
- SUPER_ADMINS=axieyangb@gmail.com,jerxie.app@gmail.com
volumes:
- ai_hub_data:/app/data:rw
deploy:
resources:
limits:
cpus: '1.0'
memory: 1G
reservations:
memory: 256M
# Define the named volume for the AI hub's data
volumes:
ai_hub_data:
driver: local
driver_opts:
type: "nfs"
# IMPORTANT: Replace the IP address below with your NFS server's actual IP
o: "addr=192.168.68.90,rw"
# IMPORTANT: Replace this path with the correct directory on your NFS server
device: ":/volume1/docker/ai-hub/data"