refactor api

This commit is contained in:
2024-10-13 18:07:13 +07:00
parent 263ff4e207
commit 1f86786e1a
7 changed files with 29 additions and 9 deletions

View File

@@ -10,13 +10,14 @@ services:
volumes:
- ./src:/app/src
environment:
- NODE_ENV=development
- NODE_ENV=production
- 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,http://localhost:3000,http://localhost:3069,http://localhost:3001
- LISTEN_PORT=3069
- SWAGGER_PATH=/v1
- SWAGGER_PATH=/swagger
- API_PATH=/v1
labels:
- 'traefik.enable=true'
- 'traefik.http.routers.api.rule=Host(`api.epess.org`)'