- Added production environment variables to docker-compose.yml - Updated Dockerfile for API and web to use Turbo build commands - Modified turbo.json to include new environment variables - Updated API index.ts to use new environment configuration - Updated README.md with correct API port - Added start:api script to package.json - Improved deployment and configuration management
41 lines
No EOL
962 B
YAML
41 lines
No EOL
962 B
YAML
services:
|
|
api:
|
|
build:
|
|
context: .
|
|
dockerfile: ./apps/api/Dockerfile
|
|
container_name: unreal-chat-api
|
|
restart: unless-stopped
|
|
environment:
|
|
- NODE_ENV=production
|
|
- DATABASE_URL=${DATABASE_URL}
|
|
- JWT_SECRET=your-secret-key
|
|
- API_PORT=4000
|
|
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
|
|
- API_HOST=${API_HOST}
|
|
networks:
|
|
- default-network
|
|
|
|
web:
|
|
build:
|
|
context: .
|
|
dockerfile: ./apps/web/Dockerfile
|
|
args:
|
|
VITE_API_URL: https://chat-api.jusemon.com/graphql
|
|
VITE_WS_URL: wss://chat-api.jusemon.com/graphql
|
|
container_name: unreal-chat-web
|
|
restart: unless-stopped
|
|
environment:
|
|
- NODE_ENV=production
|
|
- VITE_API_URL=https://chat-api.jusemon.com/graphql
|
|
- VITE_WS_URL=wss://chat-api.jusemon.com/graphql
|
|
ports:
|
|
- "5173:5173"
|
|
networks:
|
|
- default-network
|
|
|
|
volumes:
|
|
db_data:
|
|
|
|
networks:
|
|
default-network:
|
|
external: true |