Update Dockerfile

add varnish
This commit is contained in:
Olivier DEBAUCHE 2021-06-16 09:46:31 +02:00 committed by GitHub
parent c021a3fb02
commit 2cbc080b0f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -158,7 +158,14 @@ RUN mkdir /var/lib/mod_tile \
COPY apache.conf /etc/apache2/sites-available/000-default.conf COPY apache.conf /etc/apache2/sites-available/000-default.conf
COPY leaflet-demo.html /var/www/html/index.html COPY leaflet-demo.html /var/www/html/index.html
RUN ln -sf /dev/stdout /var/log/apache2/access.log \ RUN ln -sf /dev/stdout /var/log/apache2/access.log \
&& ln -sf /dev/stderr /var/log/apache2/error.log && ln -sf /dev/stderr /var/log/apache2/error.log \
&& cd /etc/apache2 \
&& sed -i -e 's/80/8080/g' ports.conf \
&& sed -i -e 's/80/8080/g' sites-available/* \
# Configure Varnish
RUN systemctl start varnish \
&& systemctl enable varnish
# Configure PosgtreSQL # Configure PosgtreSQL
COPY postgresql.custom.conf.tmpl /etc/postgresql/13/main/ COPY postgresql.custom.conf.tmpl /etc/postgresql/13/main/