Files
quixotic/.serena/memories/traefik-docker-setup.md
Andrey Kondratev b8e2bf1090 dockify
2025-08-28 16:37:59 +05:00

1.1 KiB

Traefik Docker Setup for Quixotic

Files Created

  • docker-compose.yml - Main orchestration with Traefik reverse proxy
  • Dockerfile - Multi-stage build for Node.js app with ffmpeg
  • .env.docker - Environment variables for production
  • traefik.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 Traefik
  • docker:down - Stop containers
  • docker:logs - View logs
  • docker:rebuild - Full rebuild

Current Issues

  • ffmpeg installation in Alpine causing exit code 255
  • Fixed by using apk add --no-cache ffmpeg with version check
  • May need to debug ffmpeg stream handling in container environment

Usage

docker-compose --env-file .env.docker up -d

Access: