Ampache Docker container based on Alpine Linux with up to date PHP
298
An docker image with the Ampache music server.
See: hub.docker.com/r/idelsink/ampache
docker run --name=ampache -d -v /path/to/your/music:/media:ro -p 80:80 idelsink/ampache
There are extra ports that can be passed to the container using the -p flag.
The ports are:
/root directory in the container)After starting the docker image as a daemon process, look at the logs for the pseudo-random generated MySQL root password.
docker logs ampache
# or for tailing the log file
docker logs -f ampache
The output would look something like this:
~~ Configuring system if not yet configured ~~
~~ Configuring supervisord ~~
~~ Configuring apache ~~
~~ Configuring mysql ~~
=> An empty or uninitialized MySQL volume is detected in /var/lib/mysql
=> Installing MySQL ...
=> Done!
=> Trying to secure database
=> Starting MySQL service
=> Waiting for confirmation of MySQL service startup
=> Databse is less vulnerable now; Stopping MySQL service
========================================================================
Random generated password for root is:
'MhKtpfjCHUzhT0vR51Sgu2iCuxlr3P97qo4D2A8jdRsOzaGsuV89nGfAEPF6qNKOIyY4FMawNJF86zOKLdg1eTykpr2vXED3wfrj
'
You can now connect to this MySQL Server using:
mysql -uroot -p<password> -h<host> -P<port>
Change the above password if deemed necessary.
MySQL user 'root' only allows local connections.
========================================================================
~~ Configuring ampache ~~
=> Unzip ampache archive
~~ Starting the service manager supervisord ~~
Follow the rest of the steps from the installation summary.
To setup the Plex backend do the following:
32400.-p 32400:32400 to the docker run command.System > Use Plex backend > Enablelogin.php page at http://[ip]:[plex port]/web/login.phpindex.php page at http://[ip]:[plex port]/web/index.phpAmpache is more than only a web interface. Several backends are implemented to ensure you can stream your media from anywhere. Select backends to enable. Depending the backend, you may need to perform additional configuration. See wiki page.
Players tested:
To update to the newest docker image, if necessary, a backup can be made. This is done by running a small script inside the docker container. This will backup the database and Ampache configuration.
Follow these steps to perform a backup of Ampache. Follow Steps 8 to (end) to restore a backup of Ampache.
docker ps
docker exec -it <ID or name> sh
mkdir /backup
/scripts/backup.sh b /backup
Follow the instructions
Exit the docker container
exit
docker cp <ID or name>:/backup ./backup
Update to the new/other container and let it finish configuring
Copy the files from host to container
docker cp ./backup <ID or name>:/backup
/scripts/backup.sh r /backup
Exit the container and you're done.
/root directory.You can check out the full license here
This project is licensed under the terms of the MIT license.
Content type
Image
Digest
Size
219.8 MB
Last updated
over 8 years ago
docker pull sachk/ampache-docker