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
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