Move nginx to photon OS

This commit is contained in:
yixingj 2017-06-30 14:03:42 +08:00
parent b79b80c6ee
commit fc50fd51d5
2 changed files with 12 additions and 1 deletions

View File

@ -0,0 +1,11 @@
FROM library/photon:1.0
RUN tdnf install -y nginx \
&& ln -sf /dev/stdout /var/log/nginx/access.log \
&& ln -sf /dev/stderr /var/log/nginx/error.log \
&& mkdir -p /var/run
EXPOSE 80
STOPSIGNAL SIGQUIT
CMD ["nginx", "-g", "daemon off;"]

View File

@ -109,7 +109,7 @@ services:
syslog-address: "tcp://127.0.0.1:1514"
tag: "jobservice"
proxy:
image: vmware/nginx:1.11.5-patched
image: vmware/nginx-photon:1.11.13
container_name: nginx
restart: always
volumes: