finetuning nginx

This commit is contained in:
Marco Ochse
2018-02-26 17:55:56 +00:00
parent 2f063b28c0
commit 7a507156bd
3 changed files with 6 additions and 6 deletions

View File

@ -1,4 +1,4 @@
FROM nginx:alpine
FROM alpine
MAINTAINER MO
# Include dist
@ -9,7 +9,8 @@ RUN apk -U upgrade && \
apk add bash nginx nginx-mod-http-headers-more procps && \
# Setup configs
rm /etc/nginx/conf.d/* /usr/share/nginx/html/* && \
mkdir -p /run/nginx && \
rm -rf /etc/nginx/conf.d/* /usr/share/nginx/html/* && \
cp /root/dist/conf/nginx.conf /etc/nginx/ && \
cp -R /root/dist/conf/ssl /etc/nginx/ && \
cp /root/dist/conf/tpotweb.conf /etc/nginx/conf.d/ && \

View File

@ -9,8 +9,6 @@ services:
container_name: nginx
restart: always
network_mode: "host"
# cap_add:
# - NET_BIND_SERVICE
ports:
- "64297:64297"
image: "dtagdevsec/nginx:1710"