unreal-chat/docker-compose.yml
Juan Sebastian Montoya cffcddb259 chore: update environment configuration and Docker setup
- Added .env.example file for environment variable documentation
- Refactored docker-compose.yml to use environment variables for API URLs
- Updated TypeScript configuration to use NodeNext module resolution
2025-04-10 14:36:22 -05:00

38 lines
No EOL
1,013 B
YAML

services:
api:
build:
context: .
dockerfile: ./apps/api/Dockerfile
container_name: unreal-chat-api
restart: unless-stopped
environment:
- DATABASE_URL=${DATABASE_URL}
- ALLOWED_ORIGINS=${ALLOWED_ORIGINS}
- API_HOST=${API_HOST}
- API_PORT=${API_PORT}
- COOKIE_SECRET=${COOKIE_SECRET}
- MEMC_HOST=${MEMC_HOST}
- MEMC_PORT=${MEMC_PORT}
- MINIO_ACCESS_KEY=${MINIO_ACCESS_KEY}
- MINIO_BUCKET_NAME=${MINIO_BUCKET_NAME}
- MINIO_ENDPOINT=${MINIO_ENDPOINT}
- MINIO_PORT=${MINIO_PORT}
- MINIO_SECRET_KEY=${MINIO_SECRET_KEY}
- MINIO_USE_SSL=${MINIO_USE_SSL}
- NODE_ENV=${NODE_ENV}
- TOKEN_SECRET=${TOKEN_SECRET}
web:
build:
context: .
dockerfile: ./apps/web/Dockerfile
args:
VITE_API_URL: ${VITE_API_URL}
VITE_WS_URL: ${VITE_WS_URL}
container_name: unreal-chat-web
restart: unless-stopped
networks:
default:
name: default-network
external: true