28 lines
1.3 KiB
Markdown
28 lines
1.3 KiB
Markdown
# Aether Docker Cheat Sheet 🚀
|
|
|
|
## 🚀 Deployment & Updates
|
|
- **Full Rebuild (Fast):** `docker compose up -d --build`
|
|
- **Rebuild SvelteKit UI:** `docker compose up -d --build ae_app`
|
|
- **Restart API (Pick up Python changes):** `docker compose restart ae_api`
|
|
- **Switch Build Mode:** Edit `.env` -> `AE_APP_BUILD_MODE=prod` -> `docker compose up -d --build ae_app`
|
|
|
|
## 🛠️ Management Links
|
|
- **SvelteKit Frontend:** [http://localhost:3001](http://localhost:3001)
|
|
- **FastAPI Documentation:** [https://dev-api.oneskyit.com/docs](https://dev-api.oneskyit.com/docs)
|
|
- **Database (phpMyAdmin):** [http://localhost:8081](http://localhost:8081)
|
|
- **Logs (Dozzle):** [http://localhost:8881](http://localhost:8881)
|
|
|
|
## 💾 Database Operations
|
|
- **Manual Backup:** `./backup_db.sh` (Hot backup, live container)
|
|
- **Manual Restore:** `./restore_db.sh [path_to_file.gz]` (Automated password/grant reset)
|
|
- **Conference Export:** `./export_db.sh` (Saves to `backups/conference_export/`)
|
|
- **Automated Import:** Drop file in `backups/import/` -> Run `./check_and_import.sh`.
|
|
|
|
## 📈 Scaling
|
|
1. Edit `.env` -> `AE_API_REPLICAS=X` (or `AE_APP_REPLICAS=X`)
|
|
2. Run `docker compose up -d`
|
|
|
|
## 🧹 Maintenance
|
|
- **Internal Logs:** Docker handles rotation automatically (10MB limit).
|
|
- **External Proxy:** Point your home server to `[Workstation_IP]:5060`.
|