Self-host gonic with Levelrail
A lightweight music server that speaks the Subsonic API, with a small web admin.
- Authorsentriz
- LicenceGPL-3.0-only
- Memory128 MiB
- Services1
How to self-host gonic
-
Pull the images
One image is pulled on your server.
Show images
sentriz/gonic:v0.23.0
-
Create the app
One service starts in a single Compose app, with 5 named volume mounts for your data, on port 4747.
-
Fill in the secrets
5 settings are preset, you do not have to fill in anything.
-
Open it
Without a domain the app gets an sslip.io address; add --domain SERVICE=HOST to use your own.
After the first start
- Sign in as admin with password admin and change it at once. Add music to the music volume.
gonic requirements
- Memory
- About 128 MiB
- Architectures
- amd64 unknown, arm64 unknown
- Ports
- 4747
- Domain
- Optional, an sslip.io address is used without one
- Settings
- none to fill in
- License
- GPL-3.0-only, copyleft license
- Listed. It is in the catalog but not verified. Back up the data volume before changing an image tag.
Install Levelrail first
On a server with Levelrail running, run the command above, or open the dashboard: Apps, New app, Browse templates, then gonic. New to Levelrail? Install it on a fresh VPS first.
docker pull ghcr.io/glincker/levelrail:latest Then levelrail-cli login --device. See Getting started and the gonic docs page.
Deploy gonic your way
Every format below deploys the same pinned images. Pick the one that fits how you work.
Deploy gonic from the CLI
levelrail-cli templates install gonic --name my-gonic Deploy gonic with the API
curl -X POST -H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
https://levelrail.example.com/api/v1/service-templates/gonic/install \
-d '{
"name": "my-gonic"
}' gonic configuration
gonic services
| Service | Image | Ports | Volumes |
|---|---|---|---|
| gonic | sentriz/gonic:v0.23.0 | 4747 | data -> /datamusic -> /musicpodcasts -> /podcastscache -> /cacheplaylists -> /playlists |
gonic environment variables
| Variable | Service | Value |
|---|---|---|
| GONIC_CACHE_PATH | gonic | Preset by the template |
| GONIC_MUSIC_PATH | gonic | Preset by the template |
| GONIC_PLAYLISTS_PATH | gonic | Preset by the template |
| GONIC_PODCAST_PATH | gonic | Preset by the template |
| TZ | gonic | Preset by the template |
Ports and volumes
- Ports
- 4747
- Volumes
- 5 named mounts: data -> /data, music -> /music, podcasts -> /podcasts, cache -> /cache, playlists -> /playlists
gonic FAQ
How much memory does gonic need?
The catalog lists about 128 MiB of memory for gonic.
Does gonic run on arm64?
For gonic, arm64 support is not confirmed; amd64 is unknown.
What licence is gonic under?
gonic is licensed under GPL-3.0-only, which is copyleft, so changes you distribute must be shared under the same terms.
Does gonic need configuration before it starts?
No. The template fills in its own defaults.
Which ports does gonic use?
gonic listens on port 4747 inside the stack.
Where does gonic keep its data?
In named volumes: data mounted at /data, music mounted at /music, podcasts mounted at /podcasts and cache mounted at /cache.
Can I deploy gonic on Dokploy or Dokku?
The services and pinned images on this page can be run on any Docker host. The public Dokploy templates list we compared does not have an entry with the same id for gonic, so on Dokploy you would use a Docker Compose application with the file from this page. Dokku deploys container images with its own commands, so the pinned image sentriz/gonic:v0.23.0 is what you deploy there.