docker-compose environment for the entire v.st system
https://v.st/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
31 lines
710 B
31 lines
710 B
2 years ago
|
FROM alpine
|
||
|
RUN apk update
|
||
|
RUN echo "building" \
|
||
|
&& apk add \
|
||
|
nginx \
|
||
|
collectd \
|
||
|
collectd-nginx \
|
||
|
nginx-mod-http-vts \
|
||
|
gettext \
|
||
|
curl \
|
||
|
openssl \
|
||
|
&& mkdir -p \
|
||
|
/etc/nginx/modules-enabled \
|
||
|
/etc/nginx/conf.d \
|
||
|
/docker-entrypoint.d \
|
||
|
&& ln -sf /etc/nginx/modules/10_http_vts.conf /etc/nginx/modules-enabled \
|
||
|
# forward request and error logs to docker log collector
|
||
|
&& ln -sf /dev/stdout /var/log/nginx/access.log \
|
||
|
&& ln -sf /dev/stderr /var/log/nginx/error.log \
|
||
|
&& echo "Done"
|
||
|
|
||
|
COPY ["docker-entrypoint.d/*", "/docker-entrypoint.d/" ]
|
||
|
COPY ["docker-entrypoint.sh", "/" ]
|
||
|
|
||
|
ENTRYPOINT ["/docker-entrypoint.sh"]
|
||
|
EXPOSE 80
|
||
|
STOPSIGNAL SIGQUIT
|
||
|
CMD ["nginx", "-g", "daemon off;"]
|
||
|
|
||
|
|