Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion .docker/nginx/nginx.conf
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,12 @@ server {
include fastcgi_params;
fastcgi_read_timeout 300;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-server-header "Powered by Jield - info@jield.nl";
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
fastcgi_param PATH_INFO $fastcgi_path_info;
}
location / {
try_files $uri $uri/ /index.php?$query_string;
gzip_static on;
}
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,4 +28,4 @@ PHP versions:
- 8.4.5

Azure containers contain an SSH server and default Azure credentials.
Johan van der Heide, Jield BV (info@jield.nl)
Johan van der Heide, Jield BV (johan.vanderheide@jield.nl)
15 changes: 8 additions & 7 deletions php81-nginx-azure/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN echo 'max_execution_time = 300' >> /usr/local/etc/php/conf.d/docker-php-max-
RUN echo 'opcache.max_accelerated_files = 20000' >> /usr/local/etc/php/conf.d/docker-php-opcache.ini;
RUN echo 'opcache.validate_timestamps=0' >> /usr/local/etc/php/conf.d/docker-php-opcache.ini;
RUN echo 'realpath_cache_ttl=600' >> /usr/local/etc/php/conf.d/docker-php-realpatch-cache.ini;
RUN echo 'expose_php=off' >> /usr/local/etc/php/conf.d/docker-php-expose.ini;

COPY --from=ghcr.io/mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
Expand All @@ -25,7 +26,7 @@ WORKDIR /var/www
RUN install-php-extensions gd redis-^5 xsl apcu igbinary intl gmp gettext zip opcache soap bcmath pdo_mysql

RUN apt-get update && \
apt-get install -y --no-install-recommends \
apt-get install -y --no-install-recommends \
supervisor \
openssh-server \
redis-server \
Expand All @@ -49,16 +50,16 @@ RUN chmod +x /init_container.sh \
COPY .docker/ssh/sshd_config /etc/ssh/sshd_config
COPY .docker/scripts/ssh_setup.sh /tmp/ssh_setup.sh
RUN mkdir -p /opt/startup \
&& chmod -R +x /opt/startup \
&& chmod -R +x /init_container.sh \
&& chmod -R +x /tmp/ssh_setup.sh \
&& (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \
&& rm -rf /tmp/*
&& chmod -R +x /opt/startup \
&& chmod -R +x /init_container.sh \
&& chmod -R +x /tmp/ssh_setup.sh \
&& (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \
&& rm -rf /tmp/*

# Open port 2222 for SSH access
EXPOSE 80 2222

#Start supervisor
RUN /init_container.sh

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
15 changes: 8 additions & 7 deletions php82-nginx-azure/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN echo 'max_execution_time = 300' >> /usr/local/etc/php/conf.d/docker-php-max-
RUN echo 'opcache.max_accelerated_files = 20000' >> /usr/local/etc/php/conf.d/docker-php-opcache.ini;
RUN echo 'opcache.validate_timestamps=0' >> /usr/local/etc/php/conf.d/docker-php-opcache.ini;
RUN echo 'realpath_cache_ttl=600' >> /usr/local/etc/php/conf.d/docker-php-realpatch-cache.ini;
RUN echo 'expose_php=off' >> /usr/local/etc/php/conf.d/docker-php-expose.ini;

COPY --from=ghcr.io/mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
Expand All @@ -25,7 +26,7 @@ WORKDIR /var/www
RUN install-php-extensions gd redis xsl apcu igbinary intl gmp gettext zip opcache soap bcmath pdo_mysql

RUN apt-get update && \
apt-get install -y --no-install-recommends \
apt-get install -y --no-install-recommends \
supervisor \
openssh-server \
redis-server \
Expand All @@ -49,16 +50,16 @@ RUN chmod +x /init_container.sh \
COPY .docker/ssh/sshd_config /etc/ssh/sshd_config
COPY .docker/scripts/ssh_setup.sh /tmp/ssh_setup.sh
RUN mkdir -p /opt/startup \
&& chmod -R +x /opt/startup \
&& chmod -R +x /init_container.sh \
&& chmod -R +x /tmp/ssh_setup.sh \
&& (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \
&& rm -rf /tmp/*
&& chmod -R +x /opt/startup \
&& chmod -R +x /init_container.sh \
&& chmod -R +x /tmp/ssh_setup.sh \
&& (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \
&& rm -rf /tmp/*

# Open port 2222 for SSH access
EXPOSE 80 2222

#Start supervisor
RUN /init_container.sh

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
15 changes: 8 additions & 7 deletions php83-nginx-azure/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ RUN echo 'max_execution_time = 300' >> /usr/local/etc/php/conf.d/docker-php-max-
RUN echo 'opcache.max_accelerated_files = 20000' >> /usr/local/etc/php/conf.d/docker-php-opcache.ini;
RUN echo 'opcache.validate_timestamps=0' >> /usr/local/etc/php/conf.d/docker-php-opcache.ini;
RUN echo 'realpath_cache_ttl=600' >> /usr/local/etc/php/conf.d/docker-php-realpatch-cache.ini;
RUN echo 'expose_php=off' >> /usr/local/etc/php/conf.d/docker-php-expose.ini;

COPY --from=ghcr.io/mlocati/php-extension-installer /usr/bin/install-php-extensions /usr/local/bin/
COPY --from=composer:latest /usr/bin/composer /usr/bin/composer
Expand All @@ -25,7 +26,7 @@ WORKDIR /var/www
RUN install-php-extensions gd redis xsl apcu igbinary intl gmp gettext zip opcache soap bcmath pdo_mysql

RUN apt-get update && \
apt-get install -y --no-install-recommends \
apt-get install -y --no-install-recommends \
supervisor \
openssh-server \
redis-server \
Expand All @@ -49,16 +50,16 @@ RUN chmod +x /init_container.sh \
COPY .docker/ssh/sshd_config /etc/ssh/sshd_config
COPY .docker/scripts/ssh_setup.sh /tmp/ssh_setup.sh
RUN mkdir -p /opt/startup \
&& chmod -R +x /opt/startup \
&& chmod -R +x /init_container.sh \
&& chmod -R +x /tmp/ssh_setup.sh \
&& (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \
&& rm -rf /tmp/*
&& chmod -R +x /opt/startup \
&& chmod -R +x /init_container.sh \
&& chmod -R +x /tmp/ssh_setup.sh \
&& (sleep 1;/tmp/ssh_setup.sh 2>&1 > /dev/null) \
&& rm -rf /tmp/*

# Open port 2222 for SSH access
EXPOSE 80 2222

#Start supervisor
RUN /init_container.sh

CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
CMD ["/usr/bin/supervisord", "-c", "/etc/supervisor/conf.d/supervisord.conf"]
2 changes: 1 addition & 1 deletion php84-fpm-dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ RUN echo 'date.timezone=Europe/Amsterdam' >> /usr/local/etc/php/conf.d/docker-ph
# Set working directory
WORKDIR /var/www

RUN install-php-extensions gd redis xsl apcu igbinary intl gmp gettext zip opcache soap bcmath pdo_mysql xdebug
RUN install-php-extensions gd redis xsl apcu igbinary intl gmp gettext zip opcache soap bcmath pdo_mysql xdebug