Docker image for run supervisord
1.9K
Repository of oanhnn/php-supervisord Docker image.
alpine:3.6 imageMake folder supervisor.d and put all your supervisor's program config files to that.
Make Dockerfile
# Dockerfile
FROM oanhnn/php-supervisord:latest
RUN echo ">>> Install nodejs, npm, yarn and laravel-echo-server" \
&& apk add --update \
nodejs \
nodejs-npm yarn \
&& apk add --update --no-cache -t .build-deps python make g++ gcc \
&& yarn global add --prod --no-lockfile laravel-echo-server \
&& apk del .build-deps \
&& yarn cache clean \
&& rm -rf /tmp/* /var/cache/apk/* \
&& echo ">>> Setting crond for laravel scheduler" \
&& echo -e "*\t*\t*\t*\t*\tphp /path/to/artisan schedule:run > /dev/null 2>&1" | crontab -u www-data -
EXPOSE 9000 9001
When you build, all your supervisor's program config files in supervisor.d will copy to container.
See more in Laravel example
All code contributions must go through a pull request and approved by a core developer before being merged. This is to ensure proper review of all the code.
Fork the project, create a feature branch, and send a pull request.
If you would like to help take a look at the list of issues.
This project is released under the MIT License.
Copyright © 2017 Oanh Nguyen
Please see License File for more information.
Content type
Image
Digest
Size
55.4 MB
Last updated
almost 9 years ago
docker pull oanhnn/php-supervisord