Ampache
Web based audio/video streaming application and file manager
Alternative to: spotify, apple music, youtube music
Ampache is a web based audio and video streaming application and file manager that lets you access your music and videos from anywhere, using almost any internet enabled device. It presents an already organized collection using embedded tags and file names, and exposes an API for third-party clients. Self-host it with the official Docker image.
Ampache Docker Compose example
Self-host Ampache on your own server, homelab, or VPS starting from this Docker Compose example.
It runs Ampache in Docker containers using the official ampache/ampache:latest image, with persistent volumes and automatic restarts preconfigured.
Review the environment variables and adjust them to your setup, save the file as compose.yml (or docker-compose.yml), and start the stack with docker compose up -d.
services:
ampache:
image: ampache/ampache:latest
restart: unless-stopped
volumes:
- backup:/var/www/backup
- config:/var/www/config
- log:/var/log/ampache
- media:/media
- mysql:/var/lib/mysql
environment:
# Admin username of the bundled MariaDB server (created on first start).
MYSQL_USER: "admin"
# Password of the bundled MariaDB admin user (set on first start; the database is only reachable inside the container).
MYSQL_PASS: "changeme"
# Name of the Ampache database created by the automated install.
DB_NAME: "ampache"
# Database host; "localhost" uses the MariaDB server bundled in the image.
DB_HOST: "localhost"
# Ampache admin account username, created by the automated install on first start.
AMPACHE_ADMIN_USER: "admin"
# Ampache admin account password.
AMPACHE_ADMIN_PASSWORD: "changeme"
# Ampache admin account email address.
AMPACHE_ADMIN_EMAIL: "changeme"
# Set to 1 to stop the directory monitor from cleaning removed files from the catalog (useful when media lives on storage that may go offline).
DISABLE_INOTIFYWAIT_CLEAN: "0"
volumes:
backup:
config:
log:
media:
mysql:
Values set to changeme are required — replace them with your own
values before starting Ampache.
Prefer a managed setup? WinterFlow installs, configures, and updates Ampache for you using this same Docker Compose configuration.