chore: optimize docker for synology and update readme to v4

This commit is contained in:
Khoa Vo 2026-03-20 22:02:19 +07:00
parent 29b89f0b58
commit feed4f1e8f
2 changed files with 26 additions and 11 deletions

View file

@ -8,14 +8,14 @@ A fully functional Spotify-like web player built with **React (Vite)**, **Rust (
### Option 1: Pull from Forgejo Registry ### Option 1: Pull from Forgejo Registry
```bash ```bash
docker run -p 3110:8080 git.khoavo.myds.me/vndangkhoa/spotify-clone:v3 docker run -p 3110:8080 git.khoavo.myds.me/vndangkhoa/spotify-clone:v4
``` ```
Open **[http://localhost:3110](http://localhost:3110)**. Open **[http://localhost:3110](http://localhost:3110)**.
### Option 2: Build Locally ### Option 2: Build Locally
```bash ```bash
docker build -t spotify-clone:v3 . docker build -t spotify-clone:v4 .
docker run -p 3110:8080 spotify-clone:v3 docker run -p 3110:8080 spotify-clone:v4
``` ```
--- ---
@ -24,7 +24,7 @@ docker run -p 3110:8080 spotify-clone:v3
### Image Details ### Image Details
- **Registry**: `git.khoavo.myds.me/vndangkhoa/spotify-clone` - **Registry**: `git.khoavo.myds.me/vndangkhoa/spotify-clone`
- **Tag**: `v3` - **Tag**: `v4`
- **Architecture**: `linux/amd64` - **Architecture**: `linux/amd64`
- **Ports**: - **Ports**:
- `8080` (Backend API) - `8080` (Backend API)
@ -33,7 +33,7 @@ docker run -p 3110:8080 spotify-clone:v3
```yaml ```yaml
services: services:
spotify-clone: spotify-clone:
image: git.khoavo.myds.me/vndangkhoa/spotify-clone:v3 image: git.khoavo.myds.me/vndangkhoa/spotify-clone:v4
container_name: spotify-clone container_name: spotify-clone
restart: unless-stopped restart: unless-stopped
ports: ports:
@ -54,12 +54,27 @@ services:
## 🖥️ Synology NAS Deployment (Container Manager) ## 🖥️ Synology NAS Deployment (Container Manager)
### Method A: Using Container Manager UI ### Step-by-Step for Synology Container Manager
1. Open **Container Manager** (or Docker on older DSM). 1. **Create Shared Folders**:
2. Go to **Registry****Add** → Enter: - Open **File Station**.
- Registry: `git.khoavo.myds.me` - Navigate to your `docker` share.
3. Search for `spotify-clone` and download the `v3` tag. - Create a folder named `spotify-clone`.
- Inside `spotify-clone`, create two subfolders: `data` and `cache`.
2. **Project Setup (Docker Compose)**:
- Open **Container Manager**.
- Go to **Project****Create**.
- **Project Name**: `spotify-clone`.
- **Path**: Select the `/docker/spotify-clone` folder you just created.
- **Source**: Choose **Create docker-compose.yml** and paste the content from below (ensure image tag is `v4`).
- Click **Next** until finished.
3. **Registry (Alternative Method)**:
- Go to **Registry****Settings****Add**.
- Name: `Forgejo`
- URL: `https://git.khoavo.myds.me`
- Search for `spotify-clone` and download `v4`.
4. Go to **Image** → Select the image → **Run**. 4. Go to **Image** → Select the image → **Run**.
5. Configure: 5. Configure:
- **Container Name**: `spotify-clone` - **Container Name**: `spotify-clone`

View file

@ -1,6 +1,6 @@
services: services:
spotify-clone: spotify-clone:
image: git.khoavo.myds.me/vndangkhoa/spotify-clone:v3 image: git.khoavo.myds.me/vndangkhoa/spotify-clone:v4
container_name: spotify-clone container_name: spotify-clone
restart: unless-stopped restart: unless-stopped
ports: ports: