diff --git a/.env.example b/.env.example index 30aecdc..f4adade 100644 --- a/.env.example +++ b/.env.example @@ -13,3 +13,6 @@ BACKEND_HOST_PORT=8000 BACKEND_PORT=8000 FRONTEND_HOST_PORT=3002 FRONTEND_PORT=3000 + +# Image-Tag für docker-compose.image.yml (latest oder z. B. 2026.10.04.5) +APP_IMAGE_TAG=latest diff --git a/README.md b/README.md index 88a92db..864a9a2 100644 --- a/README.md +++ b/README.md @@ -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 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`): ```yaml diff --git a/docker-compose.image.yml b/docker-compose.image.yml new file mode 100644 index 0000000..e9b8133 --- /dev/null +++ b/docker-compose.image.yml @@ -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