Page tree

Welcome to FreeSoftwareServers Confluence Wiki

Skip to end of metadata
Go to start of metadata

Dockerfile:

RUN apt install -y supervisor

ENTRYPOINT ["/usr/bin/supervisord"]
CMD ["-n", "-c", "/etc/supervisor/supervisord.conf"]
#CMD ["/usr/bin/supervisord"]

Docker-Compose:

- type: bind
        source: /opt/dcontainer/supervisor/
        target: /etc/supervisor/conf.d/

Config:

cat << 'EOF' >$WD/supervisor/supervisord.conf
[supervisord]
nodaemon=true

[program:apache2]
command=apache2ctl -DFOREGROUND

[program:xymon]
command=start-stop-daemon --exec /usr/lib/xymon/server/bin/xymonlaunch --chuid xymon --umask 022 --start

EOF
chmod +x supervisord.conf
  • No labels