chore: update environment configuration and Docker setup

- Added .env.example file for environment variable documentation
- Refactored docker-compose.yml to use environment variables for API URLs
- Updated TypeScript configuration to use NodeNext module resolution
This commit is contained in:
Juan Sebastián Montoya 2025-04-10 14:36:22 -05:00
parent f5638d0e84
commit cffcddb259
5 changed files with 25 additions and 22 deletions

19
.env.example Normal file
View file

@ -0,0 +1,19 @@
# API
DATABASE_URL="mysql://user:password@localhost:3306/db_name"
ALLOWED_ORIGINS="http://localhost:5173"
API_HOST=0.0.0.0
API_PORT=4000
COOKIE_SECRET=your-secret-key
MEMC_HOST=localhost
MEMC_PORT=11211
MINIO_ACCESS_KEY=your-access-key
MINIO_BUCKET_NAME=your-bucket-name
MINIO_ENDPOINT=your-endpoint
MINIO_SECRET_KEY=your-secret-key
MINIO_USE_SSL=true
NODE_ENV=production
TOKEN_SECRET=your-secret-key
# Web
VITE_API_URL=http://localhost:4000/graphql
VITE_WS_URL=ws://localhost:4000/graphql