removed ssl, added to /etc/nginx/ssl
This commit is contained in:
@@ -10,8 +10,8 @@ RUN apk update \
|
|||||||
&& apk add nginx \
|
&& apk add nginx \
|
||||||
# // create non-existing /run/nginx directory (PID)
|
# // create non-existing /run/nginx directory (PID)
|
||||||
&& mkdir -p /run/nginx \
|
&& mkdir -p /run/nginx \
|
||||||
# // create directory for SSL certificates (volume)
|
# // create directory for SSL certificates
|
||||||
&& mkdir -p /var/ssl \
|
&& mkdir -p /etc/nginx/ssl \
|
||||||
# // delete default vHost configuration
|
# // delete default vHost configuration
|
||||||
&& rm /etc/nginx/conf.d/default.conf \
|
&& rm /etc/nginx/conf.d/default.conf \
|
||||||
# // delete default vHost web directory
|
# // delete default vHost web directory
|
||||||
@@ -24,7 +24,7 @@ ADD ./nginx.conf /etc/nginx/nginx.conf
|
|||||||
STOPSIGNAL SIGTERM
|
STOPSIGNAL SIGTERM
|
||||||
|
|
||||||
# ------ define volumes ------ #
|
# ------ define volumes ------ #
|
||||||
VOLUME ["/var/www", "/var/ssl", "/etc/nginx"]
|
VOLUME ["/etc/nginx", "/var/www"]
|
||||||
|
|
||||||
# ------ entrypoint for container ------ #
|
# ------ entrypoint for container ------ #
|
||||||
CMD ["nginx", "-g", "daemon off;"]
|
CMD ["nginx", "-g", "daemon off;"]
|
||||||
Reference in New Issue
Block a user