- Added .env.example with database connection details and JWT configuration. - Introduced docker-compose.yml for PostgreSQL service setup with health checks. - Created drizzle.config.ts for database schema and migration management. - Updated nest-cli.json to include Swagger plugin configuration for API documentation. - Enhanced package.json with new database-related scripts and dependencies. - Implemented initial database migrations for user and token management. - Configured application bootstrap process to load environment variables and set up Swagger. - Added shared application configuration in configure-app.ts for consistent setup. - Included unit tests for application configuration and Swagger setup.
20 lines
421 B
YAML
20 lines
421 B
YAML
services:
|
|
postgres:
|
|
image: postgres:16-alpine
|
|
ports:
|
|
- '5432:5432'
|
|
environment:
|
|
POSTGRES_USER: tracking
|
|
POSTGRES_PASSWORD: tracking
|
|
POSTGRES_DB: tracking
|
|
volumes:
|
|
- tracking_pg_data:/var/lib/postgresql/data
|
|
healthcheck:
|
|
test: ['CMD-SHELL', 'pg_isready -U tracking -d tracking']
|
|
interval: 5s
|
|
timeout: 5s
|
|
retries: 10
|
|
|
|
volumes:
|
|
tracking_pg_data:
|