🚧 Work in Progress - Not yet fully tested
Deploy, manage, and scale containers with built-in Cloudflare tunnel support.
Quick Start • Features • Tech Stack • Documentation • Contributing
🚀 Inspired by Railway: This project draws inspiration from Railway's seamless deployment experience and developer-friendly approach. The goal is to bring that same level of simplicity and power to self-hosted container management.
I built Containr because I was tired of complex container orchestration tools that required weeks of setup and deep expertise. You know how it is – Kubernetes clusters to configure, CI/CD pipelines to maintain, networking nightmares to debug, and that simple app deployment that somehow took three days to get running.
So I decided to build my own solution. Containr is basically the platform I wish I had – one place to deploy, manage, and scale containers without the complexity. It's open-source and self-hosted because I believe your infrastructure should belong to you, not some cloud provider.
It's like if Docker Compose, Traefik, and a modern dashboard had a baby. Built by one person (with AI's help), for anyone who's tired of container management being a mess.
I've always been a huge fan of Portainer – their clean, intuitive approach to container management just makes sense. Everything feels intentional and puts your containers first.
So yeah, Containr borrows heavily from that design philosophy. But I wrote every line of code from scratch – this isn't some fork or copy-paste job. I took that beautiful simplicity and tried to expand it into more of a comprehensive container platform with modern features.
This project was built with Windsurf SWE 1.5.
Look, I'll be honest – I'm not the best DevOps engineer out there. But I really wanted to build something that solves real problems, and I think passion matters more than being perfect. Windsurf helped me figure out the hard stuff, learn new technologies, and actually build something I'm proud of.
As a solo dev, having an AI pair programmer made this whole thing possible. Go backend, React frontend, Docker orchestration – stuff I probably couldn't have tackled alone. It's pretty cool what you can create when humans and AI work together, even when you're still learning.
With Containr, your container deployments are centralized, scalable, and easy to manage, while remaining self-hosted so you maintain full control and privacy – just as it should be.
Containr is production-ready for small to medium deployments with comprehensive features for container management. The platform has been enhanced with enterprise-grade security, monitoring, and reliability features.
Production Readiness Score: 75/100
- ✅ Core functionality complete and tested
- ✅ Security hardening implemented
- ✅ Structured logging and error handling
- ✅ Rate limiting and request validation
- ✅ Comprehensive documentation
⚠️ Monitoring integration recommended⚠️ Load testing recommended for high-traffic scenarios
See PRODUCTION_READINESS.md for detailed assessment.
- Container Management: Deploy, start, stop, and restart containers with ease
- Service Orchestration: Manage multi-container applications with Docker Compose integration
- Automatic SSL: Built-in Let's Encrypt certificate management with Traefik
- Cloudflare Tunnel: Zero-config deployment with automatic public URLs
- Web Dashboard: Modern React-based interface for container management
- Real-time Logs: View and search container logs in real-time
- Auto-scaling: Automatic horizontal scaling based on resource metrics
- Health Monitoring: Comprehensive health checks and monitoring for all services
- Resource Metrics: CPU, memory, and network usage tracking
- Preview Environments: Automatic preview deployments for branches
- Git Integration: Connect repositories for automatic deployments
- Environment Variables: Secure management of application secrets and configuration
- Database Management: Built-in PostgreSQL and Redis with automated backups
- Security Scanning: Container vulnerability scanning and compliance reporting
- Multi-environment Support: Development, staging, and production configurations
- Load Balancing: Intelligent traffic distribution with Traefik
- Service Discovery: Automatic service registration and discovery
- Network Management: Isolated networks and secure inter-service communication
- Volume Management: Persistent storage with automated backups
- CI/CD Integration: GitHub Actions and GitLab CI integration
- Authentication: JWT-based authentication with OAuth2 support
- Role-based Access Control: Granular permissions for users and teams
- Audit Logging: Comprehensive audit trails for all actions
- Data Encryption: Encrypted storage for sensitive data
- Security Scanning: Automated vulnerability assessment
- Compliance Reporting: GDPR and SOC2 compliance frameworks
- React + TypeScript – Modern, reactive UI framework with type safety
- Vite – Fast build tool and development server with HMR
- TailwindCSS – Utility-first CSS framework for rapid UI development
- @tanstack/react-query – Powerful data fetching and state management
- React Router – Client-side routing for SPAs
- @xyflow/react – Interactive diagrams and visualizations
- Recharts – Beautiful charts and data visualization
- Zustand – Lightweight state management
- Main Backend (Go) – Core API, container management, and business logic
- Gin web framework for HTTP routing
- GORM for database operations
- JWT authentication and authorization
- Docker SDK integration
- Database Layer – PostgreSQL for production data
- Cache Layer – Redis for session management and caching
- Message Queue – Background job processing
- Docker & Docker Compose – Containerized deployment
- Traefik – Reverse proxy with automatic SSL
- Cloudflare Tunnel – Zero-config public exposure
- PostgreSQL – Primary database
- Redis – Caching and session storage
- Nginx – Static file serving
- Docker Engine with Compose v2 (
docker compose) - Git
-
Clone the repository
git clone https://github.com/your-username/containr.git cd containr -
Configure environment
cp .env.example .env cp .env.production.example .env.prod # Edit .env for local development and .env.prod for production -
Start the full local stack
docker compose up -d --build
-
Access the application
- Local full stack: http://localhost:3000 (Frontend), http://localhost:8082 (API)
- Self-hosted production:
./start-unified.sh prod - Cloudflare profile:
./start-unified.sh cloudflare
# Frontend -> Vercel
cd app/frontend
npm run remote
# Backend only -> self-hosted Docker Compose
cd ../backend
docker compose up -d --build
# Backend -> Railway
# Configure Railway service root directory: /app/backend
# Configure Railway config file path: /app/backend/railway.toml
railway upUse .env.prod in the repository root as the canonical production variable set. Copy the relevant values into Vercel and Railway project environments so the remote frontend and backend talk to each other over FRONTEND_URL, BACKEND_URL, VITE_API_URL, and VITE_AUTH_URL.
./start-unified.sh dev # Start local full stack
./start-unified.sh prod # Start self-hosted production stack from infra/
./start-unified.sh cloudflare # Start self-hosted production stack with cloudflared
./start-unified.sh stop # Stop both compose stacks
./start-unified.sh logs # View local stack logs
./start-unified.sh status # Check service status
./start-unified.sh config # Validate compose configuration
./start-unified.sh clean # Clean up containers and volumescontainr/
├── app/
│ ├── frontend/ # React + Vite frontend (deploy from here to Vercel)
│ └── backend/ # Go API + embedded Better Auth runtime
├── infra/ # Self-hosted production compose + Traefik/cloudflared
├── docs/ # API contract and design references
├── scripts/ # Utility scripts
├── .env.prod # Canonical production env template
└── README.md
# Backend
cd app/backend
go mod download
go run cmd/migrate/main.go up # optional manual migration run (legacy + goose)
go run cmd/server/main.go
# Frontend
cd ../frontend
npm install
npm run devComprehensive documentation is available in the project:
- Cloudflare Setup – Cloudflare tunnel configuration
- Docker Setup – Docker deployment guide
- Autoscaling – Auto-scaling configuration
- API Documentation – REST API reference
Key configuration options in .env:
# Domain Configuration (optional if using Cloudflare)
DOMAIN=yourdomain.com
ACME_EMAIL=admin@yourdomain.com
# Database Configuration
POSTGRES_DB=containr
POSTGRES_USER=containr_user
POSTGRES_PASSWORD=your_secure_postgres_password
MAX_CONNECTIONS=25
MAX_IDLE_CONNECTIONS=5
CONN_MAX_LIFETIME=5m
CONN_MAX_IDLE_TIME=5m
# Redis Configuration
REDIS_PASSWORD=your_secure_redis_password
# Application Configuration
JWT_SECRET=your_very_secure_jwt_secret_key_here # min 32 chars in production
CONTAINR_AGENT_AUTH_TOKEN=your_agent_shared_secret # required for node-agent auth
# Optional rotating token list (comma-separated)
# CONTAINR_AGENT_AUTH_TOKENS=current_secret,next_secret
CORS_ORIGINS=https://yourdomain.com,https://www.yourdomain.com
COOKIE_SECURE=true
# Traefik Authentication (Basic Auth for dashboard)
TRAEFIK_AUTH=admin:$$apr1$$b8mh8c8v$$KkR8hQZQZQZQZQZQZQZQZ/
# true for local dev dashboard on :8080, set false in production
TRAEFIK_API_INSECURE=true
# Cloudflare Tunnel (alternative to domain)
CLOUDFLARED_TOKEN=your_cloudflare_tunnel_token_here
# Optional: Custom Docker Registry
DOCKER_REGISTRY=your-registry.com
DOCKER_USERNAME=your_username
DOCKER_PASSWORD=your_password
# Optional: External Services
SENTRY_DSN=https://your-sentry-dsn
SLACK_WEBHOOK_URL=https://hooks.slack.com/services/your/webhook/url
# Development/Testing
ENVIRONMENT=development
DEBUG=true
TRUSTED_PROXY_CIDR=172.20.0.0/16Building Containr as a solo developer has been an incredible journey, but it's always better when we build together! Whether you're fixing a typo, adding a feature, or just sharing ideas – your contribution matters.
Feel free to contribute and enhance it to your liking. Help me make this project successful!
Every contribution, no matter how small, helps turn this solo dream into a community success story. Whether you're a seasoned developer or just starting out, your perspective and skills can help make Containr better for everyone.
Here's how you can join this adventure:
- Fork the repository and make it your own
- Create a feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add some amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request – I'll be excited to review it!
- Follow Go coding standards for backend development
- Use TypeScript for frontend development
- Write tests for new features (helps future you!)
- Update documentation as needed
- Remember: this is a labor of love, so let's keep it fun and welcoming
Don't hesitate to reach out if you're new to contributing – we all started somewhere, and I'm happy to help you get started!
This project is licensed under the MIT License - see the LICENSE file for details.
- Issues: Use GitHub Issues for bug reports and feature requests
- Discussions: Use GitHub Discussions for questions and community support
- Documentation: Check the project files for comprehensive guides
- Portainer – Container management UI inspiration
- Docker Compose – Service orchestration concepts
- Traefik – Reverse proxy and load balancing
- Cloudflare Tunnel – Zero-config deployment
This project is built with amazing open-source technologies:
- Frontend: React, TypeScript, Vite, TailwindCSS
- Backend: Go, Gin, GORM, PostgreSQL
- Infrastructure: Docker, Traefik, Cloudflare, Redis
Thank you for taking the time to look at my project. Containr represents months of learning, building, and dreaming – all in the service of creating something that makes container management a little more accessible and a lot more powerful.
In a world of complex orchestration tools and expensive cloud services, I believe there's beauty in owning your infrastructure. Containr is my attempt to build that bridge between simplicity and power.
Whether you use it, contribute to it, or just find inspiration here – know that you're part of something special. A solo developer's dream, powered by AI assistance, and shared with the open-source community.
Containr – Built with ❤️ by one human, one AI, and a passion for better container management.
