A lightweight Docker image running Supervisor on Alpine Linux to monitor processes.
1.2K
A lightweight Docker image running Supervisor on Alpine Linux to monitor processes. Supervisor makes it easy to run and monitor multiple processes.
An onbuild image can be used to copy the supervisord.conf to container.
Pulling the images from Dockerhub:
docker pull enil/alpine-supervisord
docker pull enil/alpine-supervisord-onbuild
supervisord needs a configuration file to run, by default the container looks at
/etc/supervisord.conf.
A Dockerfile could look like this:
FROM enil/alpine-supervisord
COPY supervisord.conf /etc/supervisord.conf
Then build and run the image:
docker build -t mysupervisord .
docker run -d mysupervisord
The enil/alpine-supervisord-onbuild image simplifies the process by adding an ONBUILD task to copy a configuration
file called supervisord.conf in the same directory as the Dockerfile.
This further simplifies the Dockerfile:
FROM enil/alpine-supervisord
0.20.1.10.1Content type
Image
Digest
Size
17.4 MB
Last updated
over 9 years ago
docker pull enil/alpine-supervisord-onbuild