blackbirdchess-docker-dev/varnish/Dockerfile

22 lines
476 B
Docker
Raw Normal View History

2019-10-31 14:02:33 +01:00
FROM varnish:6.3
2017-03-23 07:52:30 +01:00
# Set Environment Variables
ENV DEBIAN_FRONTEND noninteractive
# Setting Configurations
ENV VARNISH_CONFIG /etc/varnish/default.vcl
ENV CACHE_SIZE 128m
ENV VARNISHD_PARAMS -p default_ttl=3600 -p default_grace=3600
ENV VARNISH_PORT 6081
ENV BACKEND_HOST localhost
ENV BACKEND_PORT 80
COPY default.vcl /etc/varnish/default.vcl
COPY start.sh /etc/varnish/start.sh
2017-03-23 07:52:30 +01:00
RUN chmod +x /etc/varnish/start.sh
CMD ["/etc/varnish/start.sh"]
2017-03-23 08:07:25 +01:00
EXPOSE 8080