Functional Docker Compose (with suggestions) #1258
ezekieldas
started this conversation in
General
Replies: 1 comment
-
I incorporated some of your changes in the documentation for the v15 release. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
The current Docker Compose example in the myMPD documentation will not function as shown.
docker-compose.yml (current)
Even by omitting
volumes:
the following error will occur:With omitting the
user:
option, the container will then function yet 1) no data or configuration will be persistent 2) the initial run of mympd will be root.For an improved use I've made some minor modifications to aid in quickly getting the container to function and demonstrate some workarounds, shortcomings, and areas to improve.
To use this Compose example, simply create a
./mympd_config
directory with the specified ownership in the same location as thedocker-compose.yml
file. Then start the container and monitor the logs.docker-compose.yml (modified)
What this does is the following (with suggestions):
user:
remains defined as1000:1000
RUN adduser
directive were modified with uid/gid 1000entrypoint:
) to allow for creation of required directories.network_mode: host
is removed in favor ofports:
MPD_HOST
andMPD_PORT
are shown to aid in configurationBeta Was this translation helpful? Give feedback.
All reactions