removed ssl, added to /etc/nginx/ssl

This commit is contained in:
11notes
2018-01-19 08:23:57 +01:00
parent 86b9e30e24
commit 87be08521e

View File

@@ -10,8 +10,8 @@ RUN apk update \
&& apk add nginx \
# // create non-existing /run/nginx directory (PID)
&& mkdir -p /run/nginx \
# // create directory for SSL certificates (volume)
&& mkdir -p /var/ssl \
# // create directory for SSL certificates
&& mkdir -p /etc/nginx/ssl \
# // delete default vHost configuration
&& rm /etc/nginx/conf.d/default.conf \
# // delete default vHost web directory
@@ -24,7 +24,7 @@ ADD ./nginx.conf /etc/nginx/nginx.conf
STOPSIGNAL SIGTERM
# ------ define volumes ------ #
VOLUME ["/var/www", "/var/ssl", "/etc/nginx"]
VOLUME ["/etc/nginx", "/var/www"]
# ------ entrypoint for container ------ #
CMD ["nginx", "-g", "daemon off;"]