1.1 KiB
1.1 KiB
Traefik Docker Setup for Quixotic
Files Created
docker-compose.yml- Main orchestration with Traefik reverse proxyDockerfile- Multi-stage build for Node.js app with ffmpeg.env.docker- Environment variables for productiontraefik.yml- Static Traefik configuration.dockerignore- Docker build exclusions
Key Features
- Traefik v3.0 reverse proxy with automatic HTTPS (Let's Encrypt)
- HTTP to HTTPS redirect
- Traefik dashboard on port 8080 with basic auth
- Persistent volumes for SSL certs and downloads
- Health checks for the application
- Multi-stage Docker build for optimization
Commands Added to package.json
docker:up- Start with Traefikdocker:down- Stop containersdocker:logs- View logsdocker:rebuild- Full rebuild
Current Issues
- ffmpeg installation in Alpine causing exit code 255
- Fixed by using
apk add --no-cache ffmpegwith version check - May need to debug ffmpeg stream handling in container environment
Usage
docker-compose --env-file .env.docker up -d
Access:
- App: https://localhost (or configured domain)
- Traefik dashboard: http://localhost:8080