Nextcloud Purge Script, Hyperling.com Static Media Volume, Memory Tweaks (#19)
* Fix memory; was accidentally done in `docker-compose.yml`. * Fix bad path. * Prevent DB from crashing during `fixes.sh`. * Bump the DB up a little more. * Add photos directory. * Log files as they copy. * Increase certbot by a little, was maxing near 15MB after an image update. * Add a HUGE space saver to the cleanup crew. * Add the beginnings of a purge script. Helps try to bring down the DB size. * Enhance output. * Further enhance output. * Fix loading of ENV. * Enhance output. Purge file previews. * Fix extra newline. * Add sourcing of main ENV, use RM instead of MV to reduce steps. * Fix rm command. * Ensure maintenance mode is off when starting. * Add volume rather than duplicating all media. * Ignore media. * Check space before as well.
This commit is contained in:
@ -8,15 +8,11 @@ FROM debian:testing
|
||||
# Install Dependencies
|
||||
RUN apt update && apt install -y sudo php-fpm nodejs npm
|
||||
|
||||
# Copy Static Content
|
||||
RUN rm -rfv files
|
||||
COPY ./files files
|
||||
RUN rm -rfv files/README*
|
||||
|
||||
# Run Website
|
||||
CMD rm -rfv www && \
|
||||
git clone https://github.com/Hyperling/www www && \
|
||||
rm -rfv www/files && \
|
||||
mv files www/ && \
|
||||
cd www && \
|
||||
CMD cd /var/www/api && \
|
||||
rm -rfv pages main.js run.sh && \
|
||||
git clone https://github.com/Hyperling/Website website && \
|
||||
rm -rfv website/files && \
|
||||
mv -v website/* ./ && \
|
||||
rm -rfv website && \
|
||||
./run.sh
|
||||
|
@ -1,5 +1,6 @@
|
||||
# 2022-10-29
|
||||
# Hyperling.com configuration.
|
||||
# 2023-01-24 container needs 128M to get started fully then settles to 25M.
|
||||
|
||||
version: '2'
|
||||
|
||||
@ -10,9 +11,11 @@ services:
|
||||
restart: always
|
||||
ports:
|
||||
- 8317:8080
|
||||
volumes:
|
||||
- ./files:/var/www/api/files
|
||||
deploy:
|
||||
mode: global
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.10'
|
||||
memory: 32M
|
||||
memory: 128M
|
||||
|
@ -10,6 +10,8 @@ services:
|
||||
restart: always
|
||||
ports:
|
||||
- 8317:8080
|
||||
volumes:
|
||||
- ./files:/var/www/api/files
|
||||
deploy:
|
||||
mode: global
|
||||
resources:
|
||||
|
3
Config/Hyperling.com/files/photos/README.md
Normal file
3
Config/Hyperling.com/files/photos/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Hyperling.com - files/photos/
|
||||
|
||||
Used by `http://localhost:8080/photos` to build albums for sharing.
|
Reference in New Issue
Block a user