|
| 1 | + |
| 2 | +# 🐳 The Oops Bay |
| 3 | + |
| 4 | +    |
| 5 | + |
| 6 | +**The Oops Bay** is a fast, elegant, and **extremely simple** dashboard for managing Docker containers 🧘♂️ |
| 7 | + |
| 8 | +No clutter. No cognitive overload. No enterprise bloat. |
| 9 | +**Oops Bay** is built for people who want to *understand what’s going on at a glance* — not fight with the UI. |
| 10 | + |
| 11 | +--- |
| 12 | + |
| 13 | +## 🚀 Quick Start (Up and Running in 1 Minute) |
| 14 | + |
| 15 | +We respect your time ⏱️ — setup is right here at the top. |
| 16 | + |
| 17 | +### Option 1: Docker CLI |
| 18 | + |
| 19 | +```bash |
| 20 | +docker run -d \ |
| 21 | + --name the-oops-bay \ |
| 22 | + --restart unless-stopped \ |
| 23 | + -p 3000:3000 \ |
| 24 | + -v /var/run/docker.sock:/var/run/docker.sock \ |
| 25 | + -v ./oops-data:/app/data \ |
| 26 | + medzhidovomar/the-oops-bay |
| 27 | +```` |
| 28 | +For localhost-only, replace with: 127.0.0.1:3000:3000 |
| 29 | + |
| 30 | +Open your browser at: |
| 31 | +👉 **[http://localhost:3000](http://localhost:3000)** or your server IP on LAN. |
| 32 | + |
| 33 | +--- |
| 34 | + |
| 35 | +### Option 2: Docker Compose |
| 36 | + |
| 37 | +Create `docker-compose.yml`: |
| 38 | + |
| 39 | +```yaml |
| 40 | +services: |
| 41 | + the-oops-bay: |
| 42 | + image: medzhidovomar/the-oops-bay:latest |
| 43 | + container_name: the-oops-bay |
| 44 | + restart: unless-stopped |
| 45 | + ports: |
| 46 | + - "3000:3000" # Default: open to all interfaces |
| 47 | + # - "127.0.0.1:3000:3000" # Optional: bind to localhost only for security |
| 48 | + volumes: |
| 49 | + - /var/run/docker.sock:/var/run/docker.sock # Docker API access |
| 50 | + - ./oops-data:/app/data # Persistent storage |
| 51 | +
|
| 52 | +``` |
| 53 | + |
| 54 | +Run it: |
| 55 | + |
| 56 | +```bash |
| 57 | +docker-compose up -d |
| 58 | +``` |
| 59 | + |
| 60 | +> **Note:** Access to `/var/run/docker.sock` is required to manage containers and collect stats. |
| 61 | + |
| 62 | +--- |
| 63 | + |
| 64 | +## ⚠️ Security & Networking Considerations |
| 65 | + |
| 66 | +Exposing **The Oops Bay** dashboard to the internet without authentication is **dangerous**. |
| 67 | +Here’s how to do it safely. |
| 68 | + |
| 69 | +### 🔒 Localhost-only binding (Recommended) |
| 70 | + |
| 71 | +```yaml |
| 72 | +ports: |
| 73 | + - "127.0.0.1:3000:3000" |
| 74 | +``` |
| 75 | + |
| 76 | +This ensures the dashboard is **not visible externally**. |
| 77 | + |
| 78 | +### 🌐 VPS / Remote Servers |
| 79 | + |
| 80 | +* **SSH Tunneling (Recommended)** |
| 81 | + |
| 82 | +```bash |
| 83 | +ssh -L 3000:localhost:3000 user@your-vps-ip |
| 84 | +``` |
| 85 | + |
| 86 | +Then open: [http://localhost:3000](http://localhost:3000) |
| 87 | + |
| 88 | +* **VS Code Remote – SSH** |
| 89 | + Ports may be automatically forwarded. |
| 90 | + |
| 91 | +### 🏠 HomeLab / LAN Access |
| 92 | + |
| 93 | +* Use default `3000:3000` binding |
| 94 | +* Access via server local IP: `http://192.168.1.50:3000` |
| 95 | +* Ensure firewall allows traffic on port `3000` |
| 96 | + |
| 97 | +### 🧱 Using a Reverse Proxy (Caddy / Nginx / Traefik) |
| 98 | + |
| 99 | +Even without auth, a reverse proxy can: |
| 100 | + |
| 101 | +* Terminate HTTPS (TLS) |
| 102 | +* Restrict access by IP or VPN |
| 103 | +* Add optional basic auth |
| 104 | +* Hide dashboard from direct internet exposure |
| 105 | + |
| 106 | +Example **Caddyfile**: |
| 107 | + |
| 108 | +```caddy |
| 109 | +theoopsbay.example.com { |
| 110 | + reverse_proxy localhost:3000 |
| 111 | +
|
| 112 | + # Optional: basic auth |
| 113 | + # basicauth { |
| 114 | + # admin JDJhJDE0JHNhbXBsZXBhc3N3b3Jk |
| 115 | + # } |
| 116 | +} |
| 117 | +``` |
| 118 | + |
| 119 | +> ⚠️ Reverse proxy helps **isolate, encrypt, and control access**, |
| 120 | +> but it **does NOT make an unauthenticated dashboard completely secure**. |
| 121 | + |
| 122 | +--- |
| 123 | + |
| 124 | +## ✨ Why The Oops Bay? |
| 125 | + |
| 126 | +> **Simplicity first. Clarity over features. UX over checklists.** 🎯 |
| 127 | + |
| 128 | +* **🧠 Radically Simple UI** |
| 129 | + Low cognitive load, clean layout, everything visible at a glance. |
| 130 | + |
| 131 | +* **⚡ Incredible Performance** |
| 132 | + Go + Fiber backend, minimal CPU & RAM usage. |
| 133 | + |
| 134 | +* **📊 Historical Metrics** |
| 135 | + CPU & RAM usage history, beautiful charts, no paid tiers. |
| 136 | + |
| 137 | +* **🎨 Modern UX/UI** |
| 138 | + React + Vite + Tailwind + Framer Motion, fully responsive. |
| 139 | + |
| 140 | +* **🛠 Effortless Customization** |
| 141 | + Rename containers, custom icons, group by project. |
| 142 | + |
| 143 | +--- |
| 144 | + |
| 145 | +## 🆚 Comparison |
| 146 | + |
| 147 | +| Feature | The Oops Bay 🌊 | Portainer | Dozzle | Standard CLI | |
| 148 | +| -------------------- | --------------- | ------------------- | ------------- | ------------ | |
| 149 | +| UI Simplicity | ⭐⭐⭐⭐⭐ (Minimal) | ⭐⭐ (Bloated) | ⭐⭐⭐ | ❌ | |
| 150 | +| Cognitive Load | Very Low 🧘♂️ | High 🧠💥 | Medium | High | |
| 151 | +| Resource Usage | ⭐⭐⭐⭐⭐ (Low) | ⭐⭐ (High) | ⭐⭐⭐⭐ (Low) | N/A | |
| 152 | +| Historical Charts | ✅ | ❌ (Business only) | ❌ | ❌ | |
| 153 | +| Control (Start/Stop) | ✅ | ✅ | ❌ (Logs only) | ✅ | |
| 154 | +| UI / Aesthetics | Modern (2025+) | Enterprise (Legacy) | Simple | Console | |
| 155 | +| Speed | Go + Fiber 🚀 | Go (Slow API) | Go | Instant | |
| 156 | + |
| 157 | +--- |
| 158 | + |
| 159 | +## 🛠 Tech Stack |
| 160 | + |
| 161 | +**Backend:** Go 1.21+, Fiber, GORM (SQLite), Docker SDK |
| 162 | +**Frontend:** React 18, Vite, TailwindCSS, Lucide Icons |
| 163 | +**Charts:** Recharts |
| 164 | + |
| 165 | +--- |
| 166 | + |
| 167 | +## 🤝 Contribution |
| 168 | + |
| 169 | +Pull Requests welcome ❤️ |
| 170 | + |
| 171 | +### Prerequisites |
| 172 | + |
| 173 | +* Go 1.21+ |
| 174 | +* Node.js 18+ |
| 175 | +* Docker (running locally) |
| 176 | + |
| 177 | +### Run Locally |
| 178 | + |
| 179 | +```bash |
| 180 | +git clone https://github.com/justomar/the-oops-bay.git |
| 181 | +cd the-oops-bay |
| 182 | +``` |
| 183 | + |
| 184 | +Frontend: |
| 185 | + |
| 186 | +```bash |
| 187 | +cd frontend |
| 188 | +npm install |
| 189 | +npm run dev |
| 190 | +``` |
| 191 | + |
| 192 | +Backend: |
| 193 | + |
| 194 | +```bash |
| 195 | +go mod download |
| 196 | +go run . |
| 197 | +``` |
| 198 | + |
| 199 | +API available at `http://localhost:3000/api`. |
| 200 | + |
| 201 | +--- |
| 202 | + |
| 203 | +## 📝 License |
| 204 | + |
| 205 | +**GNU AGPL v3.0** 📜 |
| 206 | + |
| 207 | +You can use, modify, and distribute — |
| 208 | +**but if you run it as a service, you must share your changes.** |
| 209 | + |
| 210 | +--- |
| 211 | + |
| 212 | +<p align="center"> |
| 213 | +Made with ❤️ and a strong dislike for bloated UIs<br/> |
| 214 | +for the Docker Community 🐳 |
| 215 | +</p> |
| 216 | + |
0 commit comments