Skip to main content
50% off all plans, limited time. Starting at $2.48/mo
gonic

gonic

gonic is a music streaming server that implements the Subsonic API, so any Subsonic client can play your library. It rescans on a schedule, supports multiple users, and keeps play counts per listener. GPL-3.0 licensed with 2,500+ GitHub stars.

At a glance

2.5k

GitHub stars

1

Page views

License GPL-3.0 Version Latest OS Ubuntu Server 24.04 LTS Min RAM 1 GB IP IPV4,IPV6

Access

  1. Open the Web UI: https://<SERVER-IP>:4747
  2. gonic uses HTTPS with a self-signed certificate. Your browser will display a certificate warning the first time you connect.
  3. Log in with the default credentials: admin / admin
  4. Change the default password immediately after your first login.

Subsonic Clients

Use the following server address in your Subsonic-compatible client: https://<SERVER-IP>:4747

Because the server uses a self-signed certificate, your client must allow or trust the certificate.

The certificate is located at: /root/gonic/tls/cert.pem

You can copy it to another device with:

scp root@<SERVER-IP>:/root/gonic/tls/cert.pem .

Use the appropriate gonic username and password to authenticate with your Subsonic client.

Important Files & Directories

  • Install Path: /root/gonic
  • Compose File: /root/gonic/docker-compose.yml
  • Environment File: /root/gonic/.env
  • Database: /root/gonic/data/gonic.db
  • Music: /root/gonic/music
  • Podcasts: /root/gonic/podcasts
  • Playlists: /root/gonic/playlists
  • Cache: /root/gonic/cache
  • TLS Certificate: /root/gonic/tls/cert.pem
  • TLS Key: /root/gonic/tls/key.pem

Service Management

View running containers:

docker compose -f /root/gonic/docker-compose.yml ps

Restart containers:

docker compose -f /root/gonic/docker-compose.yml restart

View logs:

cd /root/gonic && docker compose logs -f

Stop containers:

docker compose -f /root/gonic/docker-compose.yml stop

Start containers:

docker compose -f /root/gonic/docker-compose.yml start

Recreate containers:

docker compose -f /root/gonic/docker-compose.yml up -d

Notes

  • The music directory is mounted read-only inside the container, preventing gonic from modifying your music files.
  • The database file /root/gonic/data/gonic.db should be included in your backups.
  • The cache can be deleted if necessary; it contains regenerated transcodes and cover art.
  • Configure gonic and its scanning behavior according to your preferences in /root/gonic/docker-compose.yml.

More in Self Hosted

Related apps.

Deploy gonic now. From $2.48/mo.