Docker container for Ampache, a web based audio/video streaming application and file manager allowing you to access your music & videos from anywhere, using almost any internet enabled device.
To run official builds from docker hub you can run these commands:
To run the current Ampache master (stable) branch
docker run --name=ampache -d -v /path/to/your/music:/media:ro -p 80:80 ampache/ampache
To run the current Ampache master (stable) branch without an SQL server!
docker run --name=ampache -d -v /path/to/your/music:/media:ro -p 80:80 ampache/ampache:nosql
To run the current Ampache develop branch
docker run --name=ampache -d -v /path/to/your/music:/media:ro -p 80:80 ampache/ampache:develop
The develop tag is set up to use git updates so you don't have to rebuild your images to stay up to date with development.
This method is recommended as it creates persistent volumes for important data. Included in the GitHub repository is a simple docker-compose.yml
file to get started. Use the following commands:
docker-compose up -d
The first time you run the container, you will also need to set the correct permissions on the configuration folder:
chown www-data:www-data ./data/config -R
This will automatically create mount points for music at ./data/media
, persistent MySQL storage at ./data/mysql
, and a folder for the Ampache configuration file at ./data/config
.
The automated builds for the official repo are now built for linux/amd64, linux/arm/v7 and linux/arm64.
- Open http://localhost/install.php and click Start Configuration, then Continue
- On the Insert Ampache Database page:
- MySQL Administrative Username: admin
- MySQL Administrative Password: (see container output)
- The logs will show a line that says
mysql -uadmin -pjnzYXLz7cMzq -h<host> -P<port>
. The password is everything after-p
, in this casejnzYXLz7cMzq
.
- The logs will show a line that says
- Check Create Database User
- Ampache Database User Password: Enter anything
- Click Insert Database
- Generate Configuration File page:
- Click Create Config
- Create Admin Account page:
- Enter anything for Username and Password
- Click Create Account
- Ampache Update page:
- Click Update Now!
- Click [Return to main page] to login using previously entered credentials
- @ericfrederich for his original work
- @velocity303 and @goldy for the other ampache-docker inspiration
- @kuzi-moto for bringing the image out of the dark ages
Ampache 4.2.3