Files
epess-web-backend/compose.yaml
Ly Tuan Kiet 637e044a05 refactor: standardize formatting and enhance DocumentSchema
- Updated compose.yaml to use consistent quotation marks for port and labels.
- Refactored package.json to improve readability of Jest configuration.
- Enhanced DocumentSchema by adding a new event type for cursor movement and improving formatting for better clarity.
- Consolidated import statements in document.schema.ts for consistency and readability.
- Improved error handling and validation across various methods in DocumentSchema to enhance user experience.

These changes improve code maintainability and readability, ensuring a more consistent and user-friendly experience in the Document management features.
2024-12-17 05:24:46 +07:00

66 lines
2.6 KiB
YAML

services:
api:
container_name: api
build:
context: .
dockerfile: Dockerfile
pull_policy: always
ports:
- "8888:3069"
environment:
- NODE_ENV=development
- DISABLE_AUTH=false
- BASE_URL=epess.org
# - CENTER_BASE_URL=http://localhost:3000
- CENTER_BASE_URL=https://center.epess.org
- DATABASE_URL=postgresql://your_username:your_password@10.0.27.1:5432/epess
- CLERK_PUBLISHABLE_KEY=pk_test_aW4tY2hpbXAtOTcuY2xlcmsuYWNjb3VudHMuZGV2JA
- CLERK_SECRET_KEY=sk_test_sA5lsb1GHwUNXWQCp5ev70QkaoF5EmdAHNWiCGwZF6
- CORS_ORIGIN=https://epess.org,https://admin.epess.org,https://center.epess.org,https://learning.epess.org,http://localhost:3000,http://localhost:3069,http://localhost:3001
- LISTEN_HOST=0.0.0.0
- LISTEN_PORT=3069
- SWAGGER_PATH=/swagger
- API_PATH=/v1
- MINIO_ENDPOINT=objects.epess.org
- BUCKET_NAME=epess
- MINIO_ACCESS_KEY=71dNgJtzkelXtG3R6IVt
- MINIO_SECRET_KEY=53LmFiDCZxvflJIOsVF9cf0aqkIjNU2oOWtLzGsf
- MINIO_REGION=default
- PAYOS_CLIENT_ID=e31f27d7-611a-468d-8d46-db21574a8fae
- PAYOS_API_KEY=a31d1fa1-a1b9-4e91-9948-6e46e94ce27e
- PAYOS_CHECKSUM_KEY=0b82fe148ab98083d471997df5cdd08f3c383013f8bc85e87d7ab1ab4433614e
- PAYOS_WEBHOOK_URL=https://api.epess.org/v1/payos/webhook
- PAYOS_BASE_URL=https://api-merchant.payos.vn/v2
- PAYOS_RETURN_URL=https://epess.org/services/<serviceId>/checkout
- MAILU_FROM=no-reply@mail.epess.org
- MAILU_HOST=10.0.27.1
- MAILU_PORT=25
- MAILU_USER=no-reply@mail.epess.org
- MAILU_PASSWORD=Y8pp8JipN6VItmBv
- OPENAI_API_KEY=sk-S6hWCwdKmJGn99fpD963Bf82EaD141A4B82587Eb9cB21624
- OPENAI_BASE_URL=https://api.gpt.ge/v1
- OPENAI_MAX_RETRIES=10
- PRISMA_MAX_RETRY=10
- REDIS_URL=redis://10.0.27.1:6379
- REDIS_PUBSUB_URL=redis://10.0.27.1:6379/7
- LIVEKIT_API_KEY=API9imca9hBiQ7w
- LIVEKIT_API_SECRET=75bhDbSrTpBTjWpcYRDM0fCAdcjHi3u6OFVNJe9Acx0
- LIVEKIT_PORT=29258
- LIVEKIT_URL=https://meet.epess.org
- LIVEKIT_TURN_URL=turn://turn.epess.org:5349
- LIVEKIT_CERT_FILE=/path/to/turn.crt
- LIVEKIT_KEY_FILE=/path/to/turn.key
labels:
- "traefik.enable=true"
- "traefik.http.routers.api.rule=Host(`api.epess.org`)"
- "traefik.http.routers.api.entrypoints=web"
- "traefik.http.routers.api.service=api"
- "traefik.http.services.api.loadbalancer.server.port=3069"
networks:
- epess-net
restart: always
networks:
epess-net:
driver: bridge
external: true