27 lines
908 B
Docker
27 lines
908 B
Docker
###############################################################################
|
|
# EspoCRM - Development Server for Extensions
|
|
# Based on official image, overlays custom code on each deploy
|
|
###############################################################################
|
|
|
|
FROM espocrm/espocrm:latest
|
|
|
|
# Fix redirect loop behind Traefik reverse proxy
|
|
RUN a2enmod remoteip headers && \
|
|
echo '<IfModule mod_remoteip.c>\n\
|
|
RemoteIPHeader X-Forwarded-For\n\
|
|
</IfModule>\n\
|
|
<IfModule mod_headers.c>\n\
|
|
RequestHeader set X-Forwarded-Proto "https" env=HTTPS\n\
|
|
</IfModule>\n\
|
|
SetEnvIf X-Forwarded-Proto "https" HTTPS=on' \
|
|
> /etc/apache2/conf-available/reverse-proxy.conf && \
|
|
a2enconf reverse-proxy
|
|
|
|
# Copy custom extensions and modifications
|
|
COPY custom/ /var/www/html/custom/
|
|
|
|
# Ensure correct permissions
|
|
RUN chown -R www-data:www-data /var/www/html/custom
|
|
|
|
EXPOSE 80
|