HUB
Sign inSign up

binhex/arch-gonic

By binhex

•Updated 3 days ago

Image
0

5.2K

binhex/arch-gonic repository overview

⁠Application

Gonic website⁠

⁠Description

Free-software subsonic server API implementation, supporting its many clients.

⁠Build notes

Latest stable Gonic release from Arch User Repository (AUR).

⁠Usage

docker run -d \
    -p 4747:4747 \
    --name=<container name> \
    -v <path for media files>:/media \
    -v <path for config files>:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -e GONIC_MUSIC_PATH=<path to music files> \
    -e GONIC_PODCAST_PATH=<path to podcast files> \
    -e GONIC_PLAYLISTS_PATH=<path to playlist files> \
    -e GONIC_CACHE_PATH=<path to cache files> \
    -e GONIC_DB_PATH=<path to database file> \
    -e GONIC_LISTEN_ADDR=<host:port> \
    -e GONIC_PROXY_PREFIX=<url path prefix> \
    -e GONIC_TLS_CERT=<path to TLS cert> \
    -e GONIC_TLS_KEY=<path to TLS key> \
    -e GONIC_HTTP_LOG=true|false \
    -e GONIC_SCAN_INTERVAL=<interval in minutes> \
    -e GONIC_SCAN_AT_START_ENABLED=true|false \
    -e GONIC_SCAN_WATCHER_ENABLED=true|false \
    -e GONIC_SCAN_EMBEDDED_COVER_ENABLED=true|false \
    -e GONIC_EXCLUDE_PATTERN=<regex pattern> \
    -e GONIC_GENRE_TREE=<path to genre tree file> \
    -e GONIC_MULTI_VALUE_GENRE='none|multi|delim <delimiter>' \
    -e GONIC_MULTI_VALUE_ARTIST='none|multi|delim <delimiter>' \
    -e GONIC_MULTI_VALUE_ALBUM_ARTIST='none|multi|delim <delimiter>' \
    -e GONIC_MULTI_VALUE_ISRC='none|multi|delim <delimiter>' \
    -e GONIC_TRANSCODE_CACHE_SIZE=<size in MB> \
    -e GONIC_TRANSCODE_EJECT_INTERVAL=<interval in minutes> \
    -e GONIC_COVER_CACHE_SIZE=<size in MB> \
    -e GONIC_COVER_EJECT_INTERVAL=<interval in minutes> \
    -e GONIC_PODCAST_PURGE_AGE=<age in days> \
    -e GONIC_JUKEBOX_ENABLED=true|false \
    -e GONIC_JUKEBOX_MPV_EXTRA_ARGS=<mpv arguments> \
    -e GONIC_EXPVAR=true|false \
    -e GONIC_PPROF=true|false \
    -e GONIC_LOG_DB=true|false \
    -e ENABLE_STARTUP_SCRIPTS=<yes|no> \
    -e STARTUP_SCRIPTS_MODE=<wait|parallel> \
    -e HEALTHCHECK_COMMAND=<command> \
    -e HEALTHCHECK_ACTION=<action> \
    -e HEALTHCHECK_HOSTNAME=<hostname> \
    -e UMASK=<umask for created files> \
    -e PUID=<UID for user> \
    -e PGID=<GID for user> \
    binhex/arch-gonic

Please replace all user variables in the above command defined by <> with the correct values.

⁠Access application

http://<host ip>:4747

Default username/password: admin/admin

⁠Example

docker run -d \
    -p 4747:4747 \
    --name=gonic \
    -v /media/music:/media \
    -v /apps/docker/gonic:/config \
    -v /etc/localtime:/etc/localtime:ro \
    -e GONIC_MUSIC_PATH='/media' \
    -e GONIC_PODCAST_PATH='/config/gonic/podcasts' \
    -e GONIC_PLAYLISTS_PATH='/config/gonic/playlists' \
    -e GONIC_CACHE_PATH='/config/gonic/cache' \
    -e GONIC_DB_PATH='/config/gonic/db/gonic.db' \
    -e GONIC_SCAN_INTERVAL=60 \
    -e GONIC_SCAN_WATCHER_ENABLED=true \
    -e ENABLE_STARTUP_SCRIPTS=no \
    -e STARTUP_SCRIPTS_MODE=wait \
    -e UMASK=000 \
    -e PUID=0 \
    -e PGID=0 \
    binhex/arch-gonic

⁠Notes

ENABLE_STARTUP_SCRIPTS when set to yes (default no) will allow a user to install additional packages from the official Arch Repository or the Arch User Repository (AUR) via scripts located in the folder /config/gonic/scripts/.

STARTUP_SCRIPTS_MODE controls how those scripts are executed, set to wait (default) to run each script in turn and wait for it to complete before the next script runs, or parallel to run all scripts at the same time.

User ID (PUID) and Group ID (PGID) can be found by issuing the following command for the user you want to run the container as:-

id <username>

GONIC_MUSIC_PATH, GONIC_PODCAST_PATH and GONIC_PLAYLISTS_PATH must be supplied or the container exits. GONIC_CACHE_PATH and GONIC_DB_PATH default to /config/gonic/cache and /config/gonic/db/gonic.db.


If you appreciate my work, then please consider buying me a beer :D

PayPal donation

Documentation⁠ | Support forum⁠

Tag summary

Content type

Image

Digest

sha256:6ecc08046…

Size

622.1 MB

Last updated

3 days ago

docker pull binhex/arch-gonic