feat: docker-compose.image.yml (Registry-Images) + Doku
This commit is contained in:
1 parent
adcfa52f7d
commit
10dc4d8309
3 files changed
+38
No files matched your search
@@ -13,3 +13,6 @@ BACKEND_HOST_PORT=8000
|
|||||||
BACKEND_PORT=8000
|
BACKEND_PORT=8000
|
||||||
FRONTEND_HOST_PORT=3002
|
FRONTEND_HOST_PORT=3002
|
||||||
FRONTEND_PORT=3000
|
FRONTEND_PORT=3000
|
||||||
|
|
||||||
|
# Image-Tag für docker-compose.image.yml (latest oder z. B. 2026.10.04.5)
|
||||||
|
APP_IMAGE_TAG=latest
|
||||||
@@ -66,6 +66,16 @@ Beispiel: `BACKEND_HOST_PORT=8333` → API unter `http://localhost:8333` (innen
|
|||||||
`BACKEND_PORT=8334` stellt zusätzlich den Container-Port um — `BACKEND_URL` und
|
`BACKEND_PORT=8334` stellt zusätzlich den Container-Port um — `BACKEND_URL` und
|
||||||
Healthchecks folgen automatisch, nur diese eine Variable ist nötig.
|
Healthchecks folgen automatisch, nur diese eine Variable ist nötig.
|
||||||
|
|
||||||
|
### Variante mit fertigen Images (ohne Bauen)
|
||||||
|
|
||||||
|
`docker-compose.image.yml` nutzt die per Action gebauten Images aus der
|
||||||
|
Gitea-Registry (Version per `APP_IMAGE_TAG` pinnbar, Default `latest`):
|
||||||
|
|
||||||
|
```bash
|
||||||
|
docker compose -f docker-compose.image.yml pull
|
||||||
|
docker compose -f docker-compose.image.yml up -d
|
||||||
|
```
|
||||||
|
|
||||||
Compose-Auszug (komplett in `docker-compose.yml`):
|
Compose-Auszug (komplett in `docker-compose.yml`):
|
||||||
|
|
||||||
```yaml
|
```yaml
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
# Variante mit fertigen Images aus der Gitea-Registry (kein Bauen nötig).
|
||||||
|
# Start: docker compose -f docker-compose.image.yml pull && docker compose -f docker-compose.image.yml up -d
|
||||||
|
# Version pinnen per APP_IMAGE_TAG (z. B. 2026.10.04.5), Default: latest.
|
||||||
|
services:
|
||||||
|
backend:
|
||||||
|
image: gitea.lokcal.de/loki/streamrip-ui-backend:${APP_IMAGE_TAG:-latest}
|
||||||
|
ports:
|
||||||
|
- "${BACKEND_HOST_PORT:-8000}:${BACKEND_PORT:-8000}"
|
||||||
|
environment:
|
||||||
|
- STREAMRIP_CONFIG=/config/config.toml
|
||||||
|
- STREAMRIP_DOWNLOAD_DIR=/downloads
|
||||||
|
- BACKEND_PORT=${BACKEND_PORT:-8000}
|
||||||
|
volumes:
|
||||||
|
- ${CONFIG_DIR:-~/.config/streamrip}:/config
|
||||||
|
- ${DOWNLOAD_DIR:-~/StreamripDownloads}:/downloads
|
||||||
|
frontend:
|
||||||
|
image: gitea.lokcal.de/loki/streamrip-ui-frontend:${APP_IMAGE_TAG:-latest}
|
||||||
|
ports:
|
||||||
|
- "${FRONTEND_HOST_PORT:-3002}:${FRONTEND_PORT:-3000}"
|
||||||
|
environment:
|
||||||
|
- BACKEND_URL=http://backend:${BACKEND_PORT:-8000}
|
||||||
|
- HOSTNAME=0.0.0.0
|
||||||
|
- PORT=${FRONTEND_PORT:-3000}
|
||||||
|
depends_on:
|
||||||
|
- backend
|
||||||
Reference in new issue
Block a user