initial commit
This commit is contained in:
commit
84dd5f9c88
18
Dockerfile
Normal file
18
Dockerfile
Normal file
@ -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
|
||||
|
4
supervisor-nginx.conf
Normal file
4
supervisor-nginx.conf
Normal file
@ -0,0 +1,4 @@
|
||||
[program:nginx]
|
||||
command=/usr/sbin/nginx
|
||||
autorestart=true
|
||||
|
3
supervisor.conf
Normal file
3
supervisor.conf
Normal file
@ -0,0 +1,3 @@
|
||||
[supervisord]
|
||||
nodaemon=true
|
||||
|
Loading…
x
Reference in New Issue
Block a user