Ampache Music Server

This is a set of images that make it simple to serve up yourmusic collection with Ampache. They run on topof my Debian base system,which provides excellent logging capabilities.

This image provides the Ampache server, with full support for transcodingon the fly.

I provide two images: jgoerzen/ampache, which is designed to be usedwith an outside MySQL/MariaDB server, and jgoerzen/ampache-mysql,which includes an embedded MariaDB server in the image for very easy setup.

(Omit the -mysql from both commands if you have a MySQL server elsewhere that youwill connect to.)

This will expose your music stored at /musicdir on the host in read-only mode, and your playlistsstored at /playlistdir in read-write mode, to the container. You will probably alsowant to add a -v in some fashion covering /var/www/html/ampache/config, since that you will wantto preserve those files as well. If using the built-in MySQL, you'll also want to preserve/var/lib/mysql.

Ports

By default, this image exposes a HTTP server on port 80, HTTPS on port 443, andalso exposes port 81 in case you wish to use it separately for certbot or anotherLetsencrypt validation system. HTTPS will require additional configuration.

Source

Security Status

The Debian operating system is configured to automatically apply security patches.Ampache, however, does not have such a feature, nor do most of the third-partyPHP modules it integrates.

There is some security risk in making the installation directory writable bythe web server process. This is restricted as much as possible in this image.A side-effect of that, however, is the disabling of the Ampache auto-updatefeature. If you wish to be able to use Ampache's built-in updates, youshould chown -R www-data:www-data /var/www/html/ampache.

Tags

These Docker tags are defined:

latest is built against the Ampache github master branch (which they recommend)

Copyright

Redistribution and use in source and binary forms, with or withoutmodification, are permitted provided that the following conditionsare met:

Redistributions of source code must retain the above copyrightnotice, this list of conditions and the following disclaimer.

Redistributions in binary form must reproduce the above copyrightnotice, this list of conditions and the following disclaimer in thedocumentation and/or other materials provided with the distribution.

Neither the name of the University nor the names of its contributorsmay be used to endorse or promote products derived from this softwarewithout specific prior written permission.

THIS SOFTWARE IS PROVIDED BY THE AUTHORS AND CONTRIBUTORS ``AS IS'' ANDANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THEIMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSEARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLEFOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIALDAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODSOR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICTLIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAYOUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OFSUCH DAMAGE.