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
+35
View File
@@ -0,0 +1,35 @@
# Nextcloud Docker Image
# Based on official Nextcloud image with optimizations for restore
FROM nextcloud:latest
# Install additional tools
RUN apt-get update && apt-get install -y \
postgresql-client \
mariadb-client \
rsync \
smbclient \
libmagickcore-6.q16-6-extra \
&& rm -rf /var/lib/apt/lists/*
# Set recommended PHP settings
RUN { \
echo 'memory_limit = 1G'; \
echo 'max_execution_time = 3600'; \
echo 'upload_max_filesize = 20G'; \
echo 'post_max_size = 20G'; \
echo 'max_file_uploads = 200'; \
echo 'opcache.enable = 1'; \
echo 'opcache.interned_strings_buffer = 8'; \
echo 'opcache.max_accelerated_files = 10000'; \
echo 'opcache.memory_consumption = 128'; \
echo 'opcache.save_comments = 1'; \
echo 'opcache.revalidate_freq = 1'; \
} > /usr/local/etc/php/conf.d/nextcloud-custom.ini
# Copy custom entrypoint
COPY docker-entrypoint.sh /usr/local/bin/
RUN chmod +x /usr/local/bin/docker-entrypoint.sh
ENTRYPOINT ["docker-entrypoint.sh"]
CMD ["apache2-foreground"]