feat: enhance Docker configuration and update environment variables

- Updated .dockerignore to include additional files and directories for better Docker build context management.
- Modified compose.yaml to add BASE_URL and change BUCKET_NAME to improve environment configuration.
- Refactored Dockerfile to implement a multi-stage build for optimized image size and performance.
- Updated package.json to include a new script for production Prisma generation.
- Adjusted tsconfig files to refine project structure and exclude unnecessary directories.
- Removed delta.mdx.txt file from OpenAI instructions to streamline the service.
- Updated package-lock.json and package.json to upgrade Prisma and related dependencies for improved functionality.
This commit is contained in:
2024-12-05 18:37:34 +07:00
parent ac2014079f
commit 2033d0ec26
12 changed files with 294 additions and 64 deletions

View File

@@ -7,11 +7,10 @@ services:
pull_policy: always
ports:
- '8888:3069'
volumes:
- ./src:/app/src
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
@@ -23,10 +22,10 @@ services:
- SWAGGER_PATH=/swagger
- API_PATH=/v1
- MINIO_ENDPOINT=objects.epess.org
- MINIO_BUCKET_NAME=epess
- BUCKET_NAME=epess
- MINIO_ACCESS_KEY=71dNgJtzkelXtG3R6IVt
- MINIO_SECRET_KEY=53LmFiDCZxvflJIOsVF9cf0aqkIjNU2oOWtLzGsf
- RECORDING_BUCKET_NAME=epess-recordings
- MINIO_REGION=default
- PAYOS_CLIENT_ID=e31f27d7-611a-468d-8d46-db21574a8fae
- PAYOS_API_KEY=a31d1fa1-a1b9-4e91-9948-6e46e94ce27e
- PAYOS_CHECKSUM_KEY=0b82fe148ab98083d471997df5cdd08f3c383013f8bc85e87d7ab1ab4433614e