Skip to content

Instantly share code, notes, and snippets.

@rosskukulinski
Last active August 29, 2015 14:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rosskukulinski/c4481dfb064cc2074b2d to your computer and use it in GitHub Desktop.
Save rosskukulinski/c4481dfb064cc2074b2d to your computer and use it in GitHub Desktop.
Docker systemd example
FROM ubuntu
MAINTAINER Ross Kukulinski "ross@speakit.io"
ENV REFRESHED_AT 2014-09-22
RUN apt-get -qq update
RUN apt-get -yqq install supervisor
COPY supervisord.conf /etc/supervisord.conf
# environment
CMD ["/usr/bin/supervisord","-c","/etc/supervisord.conf"]
[supervisord]
nodaemon=true
[program:app1]
autorestart=true
command=/usr/bin/app1
[program:app2]
autorestart=true
command=/usr/bin/app2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment