Add docker examples for restore services up

This commit is contained in:
2026-10-24 13:13:14 +03:00
parent 8b6b9e6093
commit 31aa977b3b
18 changed files with 926 additions and 0 deletions
+30
View File
@@ -0,0 +1,30 @@
# Piwigo Docker Image
# Based on official Piwigo image with optimizations for restore
FROM piwigo:latest
# Install additional tools for maintenance
RUN apt-get update && apt-get install -y \
mariadb-client \
rsync \
&& rm -rf /var/lib/apt/lists/*
# Set recommended PHP settings
RUN { \
echo 'memory_limit = 512M'; \
echo 'max_execution_time = 300'; \
echo 'upload_max_filesize = 100M'; \
echo 'post_max_size = 100M'; \
echo 'max_file_uploads = 50'; \
} > /usr/local/etc/php/conf.d/piwigo-custom.ini
# Create directory structure
RUN mkdir -p /var/www/html/upload /var/www/html/local/config /var/www/html/galleries \
&& chown -R www-data:www-data /var/www/html
# Copy custom entrypoint for restore support
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["apache2-foreground"]