Make GHCR the default image source

This commit is contained in:
ShukeBta
2026-06-13 23:44:39 +08:00
parent a15ef68387
commit 22b76c5e1d
3 changed files with 30 additions and 26 deletions
+13 -11
View File
@@ -124,25 +124,27 @@ Both image sources are supported. Pick one and put it in `image:`:
| Source | Image | Best for |
| --- | --- | --- |
| Docker Hub | `shukbet/mediastationgo:latest` | Most common deployments, simple `docker compose pull` |
| GitHub Container Registry (GHCR) | `ghcr.io/shukebta/mediastation-go:latest` | Backup source when Docker Hub is slow or unavailable |
| GitHub Container Registry (GHCR) | `ghcr.io/shukebta/mediastation-go:latest` | Recommended default, follows repository releases |
| Docker Hub | `shukbet/mediastationgo:latest` | Backup source when GHCR is slow or unavailable |
To pin a version, use a published Docker Hub version tag:
To pin a version, first confirm the tag exists on the repository Packages page. Use this format:
```yaml
image: shukbet/mediastationgo:MediaStationGo-v0.0.72
image: ghcr.io/shukebta/mediastation-go:<version-tag>
# If GHCR does not have that tag, use Docker Hub as the backup:
# image: shukbet/mediastationgo:MediaStationGo-v0.0.72
```
For pinned GHCR versions, use the tags published on the repository Packages page. For the simplest setup, keep `latest`.
For the simplest setup, keep GHCR `latest`.
Manual pull examples:
```bash
# Docker Hub
docker pull shukbet/mediastationgo:latest
# GitHub Container Registry
docker pull ghcr.io/shukebta/mediastation-go:latest
# Docker Hub backup
docker pull shukbet/mediastationgo:latest
```
Focus on this part:
@@ -201,10 +203,10 @@ The root `docker-compose.yml` follows this style:
services:
mediastation-go:
# Pick one image source:
# Docker Hub:
image: shukbet/mediastationgo:latest
# GitHub Container Registry (GHCR):
# image: ghcr.io/shukebta/mediastation-go:latest
image: ghcr.io/shukebta/mediastation-go:latest
# Docker Hub backup:
# image: shukbet/mediastationgo:latest
container_name: mediastation-go
restart: unless-stopped