Add GHCR publish workflow and pre-built image deployment

Adds a GitHub Actions workflow that builds and pushes backend and nginx
images to GitHub Container Registry on every merge to main and on
releases. Adds docker-compose.ghcr.yml for end users who want to deploy
without cloning the repo, and updates the README with Quick Deploy
instructions alongside the existing build-from-source guide.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2GT-Rich
2026-04-19 10:21:21 -07:00
co-authored by Claude Sonnet 4.6
parent 5d96503832
commit 25ae3854b4
3 changed files with 261 additions and 1 deletions
+43 -1
View File
@@ -206,7 +206,49 @@ Instant search across devices, clients, and events from the top navigation bar.
---
## Quick Start
## Quick Deploy (Pre-built Images)
No source code or build toolchain required — just Docker and Docker Compose.
### 1. Download the compose file
```bash
curl -O https://raw.githubusercontent.com/2GT-Media-Group-LLC/mikrotik-manager/main/docker-compose.ghcr.yml
```
### 2. Create your environment file
```bash
curl -O https://raw.githubusercontent.com/2GT-Media-Group-LLC/mikrotik-manager/main/.env.example
mv .env.example .env
```
Edit `.env` and set at minimum:
```env
JWT_SECRET=your_long_random_jwt_secret_here
ENCRYPTION_KEY=your_32_character_encryption_key_
```
### 3. Start the application
```bash
docker compose -f docker-compose.ghcr.yml up -d
```
Docker pulls the pre-built images from GitHub Container Registry and starts the stack. No compilation, no cloning.
### 4. Open the app
Navigate to **https://localhost** (or your server's IP/hostname) and log in with `admin` / `admin`.
> To update to the latest release: `docker compose -f docker-compose.ghcr.yml pull && docker compose -f docker-compose.ghcr.yml up -d`
---
## Quick Start (Build from Source)
For contributors or anyone who wants to build the images locally.
### 1. Clone the repository