Add configuration file and update server settings

- Introduced a new `config.yaml` file for managing server, database, cache, queue, AI, scraping, logging, and rate limiting configurations.
- Updated `docker-compose.yml` to reflect the new server port (8081) and adjusted health check endpoints accordingly.
- Modified `Dockerfile` to expose the new server port.
- Updated `README.md` to reflect changes in server configuration and added documentation for the new configuration structure.
- Added test scripts for server and Swagger documentation testing.
- Refactored customer domain structure to align with new configuration settings and improve maintainability.
This commit is contained in:
n.nakhostin
2025-08-02 12:37:04 +03:30
parent 06dc1d5b7a
commit 9119e2383e
30 changed files with 7273 additions and 1106 deletions
+3 -3
View File
@@ -88,7 +88,7 @@ services:
restart: unless-stopped
environment:
- TM_SERVER_HOST=0.0.0.0
- TM_SERVER_PORT=8080
- TM_SERVER_PORT=8081
- TM_DATABASE_MONGODB_URI=mongodb://admin:password@mongodb:27017/tender_management?authSource=admin
- TM_CACHE_REDIS_HOST=redis
- TM_CACHE_REDIS_PASSWORD=password
@@ -97,7 +97,7 @@ services:
- TM_AUTH_JWT_SECRET=super-secret-jwt-key-change-in-production
- TM_LOGGING_LEVEL=info
ports:
- "8080:8080"
- "8081:8081"
depends_on:
- mongodb
- redis
@@ -109,7 +109,7 @@ services:
networks:
- tender_network
healthcheck:
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8080/health"]
test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:8081/health"]
interval: 30s
timeout: 10s
retries: 3