mirror of
https://github.com/KevinMidboe/infra-map.git
synced 2025-12-08 20:29:05 +00:00
template varnish config using gomplate
This commit is contained in:
@@ -21,7 +21,19 @@ RUN git clone https://github.com/varnish/libvmod-digest.git /opt/libvmod-digest
|
||||
./configure VARNISHSRC=/usr/include/varnish && \
|
||||
make && make install
|
||||
|
||||
COPY . /etc/varnish/
|
||||
COPY --from=hairyhenderson/gomplate:stable /gomplate /bin/gomplate
|
||||
|
||||
ARG HASS_HOST
|
||||
ARG FRONTEND_HOST
|
||||
ENV HASS_HOST=$HASS_HOST
|
||||
ENV FRONTEND_HOST=$FRONTEND_HOST
|
||||
|
||||
COPY default.vcl.tmpl /etc/varnish/
|
||||
COPY *.vcl /etc/varnish/
|
||||
COPY includes /etc/varnish/includes
|
||||
|
||||
RUN gomplate -f /etc/varnish/default.vcl.tmpl -o /etc/varnish/default.vcl
|
||||
RUN rm /etc/varnish/default.vcl.tmpl
|
||||
|
||||
EXPOSE 6081
|
||||
|
||||
|
||||
Reference in New Issue
Block a user