Skip to content

Instantly share code, notes, and snippets.

@michaeldwan
Created August 12, 2020 19:02
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 michaeldwan/aec8905c54a95a5ab9f0aeba6905eb63 to your computer and use it in GitHub Desktop.
Save michaeldwan/aec8905c54a95a5ab9f0aeba6905eb63 to your computer and use it in GitHub Desktop.
FROM alpine
RUN apk add supervisor redis
RUN mkdir -p /var/log/supervisor /usr/local/var/db/redis/
COPY config/redis.conf /usr/local/etc/redis/redis.conf
COPY config/supervisord.conf /etc/supervisord.conf
COPY ./entrypoint.sh /usr/local/bin/
CMD [ "sh", "/usr/local/bin/entrypoint.sh" ]
#!/bin/bash
set -e
exec /usr/bin/supervisord
[supervisord]
nodaemon=true
[program:redis]
command=redis-server "/usr/local/etc/redis/redis.conf"
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
[program:db-proxy]
command=/usr/local/bin/db-proxy
stdout_logfile=/dev/stdout
stdout_logfile_maxbytes=0
stderr_logfile=/dev/stderr
stderr_logfile_maxbytes=0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment