From 84dd5f9c88f0666120ed77f0d605bdbc9f64ad10 Mon Sep 17 00:00:00 2001 From: Dave Pedu Date: Thu, 21 Jan 2016 12:57:50 -0800 Subject: [PATCH] initial commit --- Dockerfile | 18 ++++++++++++++++++ supervisor-nginx.conf | 4 ++++ supervisor.conf | 3 +++ 3 files changed, 25 insertions(+) create mode 100644 Dockerfile create mode 100644 supervisor-nginx.conf create mode 100644 supervisor.conf diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..442bd5d --- /dev/null +++ b/Dockerfile @@ -0,0 +1,18 @@ +FROM ubuntu:trusty + +RUN apt-get update && \ + apt-get install -y nginx-light supervisor && \ + rm -rf /var/lib/apt/lists/* && \ + echo 'daemon off;' >> /etc/nginx/nginx.conf + +# Supervisor confs +ADD supervisor.conf /etc/supervisor/conf.d/supervisor.conf +ADD supervisor-nginx.conf /etc/supervisor/conf.d/nginx.conf + +# Startup tasks + +ENTRYPOINT ["supervisord"] + +EXPOSE 80 +EXPOSE 443 + diff --git a/supervisor-nginx.conf b/supervisor-nginx.conf new file mode 100644 index 0000000..eb73b43 --- /dev/null +++ b/supervisor-nginx.conf @@ -0,0 +1,4 @@ +[program:nginx] +command=/usr/sbin/nginx +autorestart=true + diff --git a/supervisor.conf b/supervisor.conf new file mode 100644 index 0000000..3fb016d --- /dev/null +++ b/supervisor.conf @@ -0,0 +1,3 @@ +[supervisord] +nodaemon=true +