Nextcloud, Hyperling.com, LibreTranslate, and backup.sh Enhancements #11

Merged
me merged 34 commits from dev into main 2025-10-14 14:58:59 -07:00
4 changed files with 22 additions and 24 deletions
Showing only changes of commit 418983c490 - Show all commits

View File

@@ -20,7 +20,7 @@ CMD cd /var/www/api && \
ls -l website/files; rm -v website/files; sleep 0 && \
echo "Dockerfile: Clone the website's Git repo..." && \
rm -rfv website && \
git clone https://git.hyperling.com/me/nodejs-website website && \
git clone https://git.hyperling.com/me/nodejs-website $BRANCH website && \
echo "Dockerfile: Remove dummy files and replace with symlink..." && \
rm -rfv website/files && \
cd website && \

View File

@@ -10,11 +10,15 @@ services:
restart: always
ports:
- 8317:8080
environment:
- BRANCH=$BRANCH
- CPU=$CPU
- MEM=$MEM
volumes:
- ./files:/var/www/api/files
deploy:
mode: global
resources:
limits:
cpus: '0.25'
memory: 256M
cpus: $CPU
memory: $RAM

View File

@@ -1,21 +0,0 @@
# 2022-10-29
# Hyperling.com configuration.
# 2023-01-24 container needs 128M to get started fully then settles to 25M.
services:
app:
container_name: www-app
build:
context: ./
network: host
restart: always
ports:
- 8317:8080
volumes:
- ./files:/var/www/api/files
deploy:
mode: global
resources:
limits:
cpus: '0.10'
memory: 128M

View File

@@ -7,3 +7,18 @@
# Subsequent builds consistently take less than 2 seconds.
# Testing was done on the micro server, not a workstation.
COMPOSE_BAKE=true
## Branch ##
# Allow choosing the branch. By keaving it blank, main will be used.
# Should be in the full "--branch my-branch" syntax.
BRANCH=
#BRANCH="--branch dev"
## Performance ##
# Standard Server
CPU=0.25
MEM=0.25G
# Micro Server
# 2023-01-24 container needs 128M to get started fully then settles to 25M.
CPU=0.10
MEM=128M