Files
MichaelandClaude Haiku 4.5 1822ab1afe fix: single container without nginx — Express serves frontend
- Remove separate backend/ and frontend/ Dockerfiles
- Add root Dockerfile (3-stage: frontend build → backend build → runtime)
- Frontend static files served by Express from /public
- Simplify docker-compose to 3 services: mongodb, redis, app (port 3579)
- Fix vite proxy not to strip /api prefix from paths
- Default API URL to relative /api instead of hardcoded localhost

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-16 10:43:06 +02:00

28 lines
793 B
Bash

# Backend Configuration
NODE_ENV=development
PORT=5000
API_URL=http://localhost:5000
# MongoDB Configuration
MONGODB_URI=mongodb://mongo:27017/podcastic
MONGODB_USER=podcastic
MONGODB_PASSWORD=podcastic_dev
# Redis Configuration
REDIS_URL=redis://redis:6379
# JWT Configuration
JWT_SECRET=your_super_secret_jwt_key_change_in_production
JWT_EXPIRES_IN=7d
JWT_REFRESH_EXPIRES_IN=30d
# Podcast API (PodcastIndex) - OPTIONAL but recommended for search feature
# Get free API keys at: https://podcastindex-api.com/
# These enable podcast discovery and search functionality
PODCAST_INDEX_API_KEY=
PODCAST_INDEX_API_SECRET=
# Frontend Configuration (only needed for local dev without Docker)
# In Docker, the frontend is served by the backend itself — no VITE_API_URL needed
VITE_API_URL=/api