ampd

Docker

Using Docker hub

To get the latest version of ampd from Docker Hub:

docker pull rain0r/ampd

All properties from the application.properties can be set with environment variables. Replace dots with underscores and use upper case.

To set mpd.server to my-mpd-server, start ampd with:

docker run -p 8080:8080 --env MPD_SERVER=my-mpd-server rain0r/ampd

To persist the settings, create a file with one KEY=VALUE per line. See env.sample as an example.

docker run -p 8080:8080 --env-file ./env.list rain0r/ampd

Using a release

To run a (stable) release of ampd, download the latest release and rename it to ampd.jar. Create a file Dockerfile (in the same directory) with this content:

Also create an empty file application.properties (or copy application.properties). All ampd settings can be configured via this file.

FROM eclipse-temurin:17
COPY ampd.jar ampd.jar
COPY application.properties application.properties
ENTRYPOINT ["java", "-jar", "/ampd.jar"]
EXPOSE 8080

Then create the docker image:

docker build . -t ampd

And run it with:

docker run -p 8080:8080 ampd

Visit ampd on http://localhost:8080/.

Build from source

To build an image ampd form the master branch:

git clone https://github.com/rain0r/ampd/
cd ampd
docker build . -t ampd-dev -f docker/Dockerfile-src
docker run -p 8080:8080 ampd-dev