1 Commits

Author SHA1 Message Date
4ca05459b1 add beets support 2024-12-08 22:47:11 -08:00
6 changed files with 49 additions and 22 deletions

View File

@ -6,7 +6,7 @@ steps:
image: git.coopcloud.tech/coop-cloud/stack-ssh-deploy:latest
settings:
host: swarm-test.autonomic.zone
stack: navidrome
stack: {{ .Name }}
generate_secrets: true
purge: true
deploy_key:
@ -14,10 +14,9 @@ steps:
networks:
- proxy
environment:
DOMAIN: navidrome.swarm-test.autonomic.zone
STACK_NAME: navidrome
DOMAIN: {{ .Name }}.swarm-test.autonomic.zone
STACK_NAME: {{ .Name }}
LETS_ENCRYPT_ENV: production
EXTRA_VOLUME: "/dev/null:/tmp/.dummy"
trigger:
branch:
- main
@ -33,7 +32,7 @@ steps:
from_secret: drone_abra-bot_token
fork: true
repositories:
- toolshed/auto-recipes-catalogue-json
- coop-cloud/auto-recipes-catalogue-json
trigger:
event: tag

View File

@ -2,10 +2,12 @@ TYPE=navidrome
DOMAIN=navidrome.example.com
# ! If your files live on the host already, make sure to bind the directory below
EXTRA_VOLUME="/dev/null:/tmp/.dummy"
## Domain aliases
#EXTRA_DOMAINS=', `www.navidrome.example.com`'
LETS_ENCRYPT_ENV=production
COMPOSE_FILE="compose.yml"
## Add a beets container
# COMPOSE_FILE="$COMPOSE_FILE:compose.beets.yml"

View File

@ -5,7 +5,7 @@
<!-- metadata -->
* **Category**: Apps
* **Status**: 2
* **Status**: 1
* **Image**: [`navidrome`](https://hub.docker.com/r/navidrome), 4, upstream
* **Healthcheck**: No
* **Backups**: No
@ -17,9 +17,20 @@
## Quick start
* `abra app new navidrome`
* `abra app new navidrome --secrets`
* `abra app config <app-name>`
* Make sure to update the `EXTRA_VOLUME` env var if you have files on the host already, then you can [add them within the Navidrome UI later](https://www.navidrome.org/docs/usage/multi-library/#creating-additional-libraries)
* `abra app deploy <app-name>`
For more, see [`docs.coopcloud.tech`](https://docs.coopcloud.tech).
## Beets
[Beets](https://beets.readthedocs.io/en/stable/index.html) is a handy music library organizer.
To add beets support:
- `abra app config <app-name>`
- uncomment the line `# COMPOSE_FILE="$COMPOSE_FILE:compose.beets.yml"`
- deploy
- use `abra app run <app-name> beets bash`
You will be able to see your music library under `/music` and you can add new music to `/donwload` by adding them to the `beets_ingest` volume then import them using `beet import [-m] /download/{music_folder}` or whatever [beets cli](https://beets.readthedocs.io/en/stable/reference/cli.html) command you want to run!

21
compose.beets.yml Normal file
View File

@ -0,0 +1,21 @@
version: "3.8"
services:
beets:
image: "lscr.io/linuxserver/beets:2.2.0-ls248"
environment:
- PUID=1000
- PGID=1000
volumes:
- navidrome_music:/music
- beets_config:/config
- beets_ingest:/download
deploy:
restart_policy:
condition: on-failure
networks:
- internal
volumes:
beets_config:
beets_ingest:

View File

@ -3,16 +3,16 @@ version: "3.8"
services:
app:
image: deluan/navidrome:0.58.0
image: deluan/navidrome:pr-3349
networks:
- proxy
- internal
volumes:
- navidrome_data:/data
- navidrome_music:/music:ro
- "${EXTRA_VOLUME}"
environment:
ND_SCANSCHEDULE: 1h
ND_LOGLEVEL: info
ND_LOGLEVEL: info
ND_SESSIONTIMEOUT: 24h
ND_BASEURL: "https://${DOMAIN}"
deploy:
@ -27,11 +27,12 @@ services:
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
- "coop-cloud.${STACK_NAME}.version=0.2.0+0.58.0"
- "coop-cloud.${STACK_NAME}.version=0.1.0+pr-3349"
networks:
proxy:
external: true
internal:
volumes:
navidrome_data:
navidrome_music:

View File

@ -1,7 +0,0 @@
## Navidrome Docker image
Bumped to latest version-tagged image: v0.58.0
## Configuration
Add support for an `EXTRA_VOLUME` to be mounted & instructions on how to setup a multi-library