Compare commits

...
13 Commits
20 changed files with 22 additions and 50 deletions

No files matched your search

+1 -1
View File
@@ -33,6 +33,7 @@ disabled.*
# 2024-01-23 Ignore true docker-compose files, only show examples from now on.
docker-compose.yml
compose.yml
# 2024-01-24 Hide static files for Hyperling.com.
Config/Hyperling.com/files/*
@@ -69,4 +70,3 @@ DEV-*
Config/Prosody/conf.avail
Config/Prosody/etc/conf.avail
Config/Prosody/etc/
-2
View File
@@ -10,13 +10,11 @@ services:
container_name: dns-app
build:
context: ./
network: host
restart: always
ports:
- "53:53/udp"
- "53:53/tcp"
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -14,7 +14,6 @@ services:
container_name: fd-app
build:
context: ./
network: host
args:
#WEBROOT: ${WEBROOT}
#REPO: ${REPO}
@@ -114,7 +113,6 @@ services:
volumes:
- fdroid_data:/root/fdroid
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -25,7 +25,6 @@ services:
volumes:
- ../../Volumes/Ghost/ghost:/var/lib/ghost/content
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -43,7 +42,6 @@ services:
volumes:
- ../../Volumes/Ghost/db:/var/lib/mysql
deploy:
mode: global
resources:
limits:
cpus: $CPU_DB
-1
View File
@@ -27,7 +27,6 @@ services:
- USER_UID=1000
- USER_GID=1000
deploy:
mode: global
resources:
limits:
cpus: $CPU
-1
View File
@@ -26,7 +26,6 @@ services:
environment:
- "RUN_CROND=true"
deploy:
mode: global
resources:
limits:
cpus: $CPU
+17 -2
View File
@@ -1,11 +1,27 @@
# 2025-08-13 Hyperling
# Changelog
## 20261027: Install hugo from source. paperMod currently requires ~150 and Debian has ~130, latest is ~160.
## Image ##
FROM debian:trixie-slim
USER root
## Setup ##
ARG DEBIAN_FRONTEND=noninteractive
# System Dependencies
RUN apt-get update && apt-get install -y git hugo nginx cron curl bash sudo htop
RUN apt-get update && \
apt-get install -y \
git nginx cron curl bash sudo \
golang gcc ca-certificates && \
rm -rf /var/lib/apt/lists/*
# Compile Hugo (same version Artix is currently shipping, rather than latest.)
RUN CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@v0.164.0
# Install Hugo
RUN mv -v $HOME/go/bin/hugo /usr/local/bin/hugo && \
chmod -v 755 /usr/local/bin/hugo
# User and Group
#RUN groupadd -r hugo && useradd -r -g hugo hugo
@@ -31,5 +47,4 @@ RUN chmod +x /root/main.sh
## Main ##
# Install + Run Website
WORKDIR /var/www/
USER root
CMD /root/main.sh "$REPO" "$BRANCH" "$PROD" "$DEV"
@@ -6,7 +6,7 @@ services:
container_name: hugo
build:
context: ./
network: host
image: hyperling-hugo:latest
restart: always
ports:
- 8013:80 # Production minified files served using NGINX.
@@ -23,7 +23,6 @@ services:
retries: 2
start_period: 30s
deploy:
mode: global
resources:
limits:
cpus: $CPU
+1 -1
View File
@@ -8,7 +8,7 @@ COMPOSE_BAKE=true
#
## Git Website Repository ##
#
REPO=https://git.hyperling.com/me/hugo-jackanope
REPO=https://git.hyperling.com/me/hugo-recipes
BRANCH=prod
#
+1 -5
View File
@@ -16,7 +16,7 @@ if [[ $status != 0 && -e /var/www/html/index.html && -z $FORCE ]]; then
fi
# If the project was not already up to date, build the new files for NGINX.
hugo --gc --minify
/usr/local/bin/hugo --gc --minify
status="$?"
echo "* Hugo status is '$status', FORCE is '$FORCE'."
if [[ $status == 0 && -e public/index.html ]]; then
@@ -26,7 +26,3 @@ if [[ $status == 0 && -e public/index.html ]]; then
fi
exit 0
ww/html/
fi
exit 0
@@ -6,7 +6,6 @@ services:
container_name: www-app
build:
context: ./
network: host
restart: always
ports:
- 8317:8080
@@ -15,7 +14,6 @@ services:
volumes:
- ./files:/var/www/api/files
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -26,7 +26,6 @@ services:
container_name: lt-app
build:
context: ./
network: host
restart: always
ports:
- "5000:5000"
@@ -48,7 +47,6 @@ services:
# Avoid re-downloading language models every reboot.
- libretranslate_models:/home/libretranslate/.local:rw
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -34,7 +34,6 @@ services:
- MYSQL_USER=$MYSQL_USER
- MYSQL_PASSWORD=$MYSQL_PASSWORD
deploy:
mode: global
resources:
limits:
cpus: '0.20'
@@ -47,7 +46,6 @@ services:
restart: always
command: redis-server --requirepass $REDIS_HOST_PASSWORD
deploy:
mode: global
resources:
limits:
cpus: '0.10'
@@ -95,7 +93,6 @@ services:
- REDIS_HOST=$REDIS_HOST
- REDIS_HOST_PASSWORD=$REDIS_HOST_PASSWORD
deploy:
mode: global
resources:
limits:
cpus: '0.40'
@@ -32,7 +32,6 @@ services:
- MYSQL_USER=$MYSQL_USER
- MYSQL_PASSWORD=$MYSQL_PASSWORD
deploy:
mode: global
resources:
limits:
cpus: '0.50'
@@ -48,7 +47,6 @@ services:
restart: always
command: redis-server --requirepass $REDIS_HOST_PASSWORD
deploy:
mode: global
resources:
limits:
cpus: '0.25'
@@ -64,7 +62,6 @@ services:
environment:
- JWT_SECRET=$JWT_SECRET
deploy:
mode: global
resources:
limits:
cpus: '0.75'
@@ -96,7 +93,6 @@ services:
- REDIS_HOST=$REDIS_HOST
- REDIS_HOST_PASSWORD=$REDIS_HOST_PASSWORD
deploy:
mode: global
resources:
limits:
cpus: '2.00'
@@ -118,7 +118,6 @@ services:
# Importing reorganizes files+folders, would rather they remain intact.
#- "../../Volumes/PhotoPrism/imports_go_here:/photoprism/import"
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -149,7 +148,6 @@ services:
MARIADB_PASSWORD: $MARIADB_PASSWORD
MARIADB_ROOT_PASSWORD: $MARIADB_ROOT_PASSWORD
deploy:
mode: global
resources:
limits:
cpus: $CPU_DB
@@ -32,7 +32,6 @@ services:
container_name: prosody
build:
context: ./
network: host
restart: always
ports:
- 5222:5222
@@ -55,7 +54,6 @@ services:
- prosody_certs:/etc/letsencrypt/live
- prosody_cert_archive:/etc/letsencrypt/archive
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -16,7 +16,6 @@ services:
build:
context: ./
dockerfile: Dockerfiles/arch
network: host
args:
PACKAGES: ${PACKAGES}
EXTRA_ARCH: ${EXTRA_ARCH}
@@ -35,7 +34,6 @@ services:
volume:
subpath: arch
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -46,7 +44,6 @@ services:
build:
context: ./
dockerfile: Dockerfiles/debian
network: host
args:
PACKAGES: ${PACKAGES}
EXTRA_DEBIAN: ${EXTRA_DEBIAN}
@@ -65,7 +62,6 @@ services:
volume:
subpath: debian
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -76,7 +72,6 @@ services:
build:
context: ./
dockerfile: Dockerfiles/fedora
network: host
args:
PACKAGES: ${PACKAGES}
EXTRA_FEDORA: ${EXTRA_FEDORA}
@@ -95,7 +90,6 @@ services:
volume:
subpath: fedora
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -106,7 +100,6 @@ services:
build:
context: ./
dockerfile: Dockerfiles/opensuse
network: host
args:
PACKAGES: ${PACKAGES}
EXTRA_OPENSUSE: ${EXTRA_OPENSUSE}
@@ -125,7 +118,6 @@ services:
volume:
subpath: opensuse
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -136,7 +128,6 @@ services:
build:
context: ./
dockerfile: Dockerfiles/ubuntu
network: host
args:
PACKAGES: ${PACKAGES}
EXTRA_UBUNTU: ${EXTRA_UBUNTU}
@@ -155,7 +146,6 @@ services:
volume:
subpath: ubuntu
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -11,7 +11,6 @@ services:
container_name: rp-app
build:
context: ./
network: host
restart: always
ports:
- "80:80"
@@ -21,7 +20,6 @@ services:
- ../../Volumes/ReverseProxy/letsencrypt-certs:/etc/nginx/certs
command: "/bin/sh -c 'while :; do sleep 6h & wait $${!}; nginx -s reload; done & nginx -g \"daemon off;\"'"
deploy:
mode: global
resources:
limits:
cpus: $CPU
@@ -36,7 +34,6 @@ services:
- ../../Volumes/ReverseProxy/letsencrypt-certs:/etc/letsencrypt/nginx
entrypoint: "/bin/sh -c 'trap exit TERM; while :; do certbot renew; cp -rL /etc/letsencrypt/live/* /etc/letsencrypt/nginx/; sleep 12h & wait $${!}; done;'"
deploy:
mode: global
resources:
limits:
cpus: $CPU_LE
@@ -43,7 +43,6 @@ services:
WORDPRESS_DB_PASSWORD: $MARIADB_ROOT_PASSWORD
WORDPRESS_DEBUG: $WORDPRESS_DEBUG
deploy:
mode: global
resources:
limits:
cpus: $WP_CPU
@@ -69,7 +68,6 @@ services:
MARIADB_ROOT_PASSWORD: $MARIADB_ROOT_PASSWORD
MARIADB_AUTO_UPGRADE: $MARIADB_AUTO_UPGRADE
deploy:
mode: global
resources:
limits:
cpus: $WP_CPU_DB
+1 -1
View File
@@ -56,7 +56,7 @@ if [[ "$pkgmgr" == "apt" ]]; then
elif [[ $pkgmgr == "pacman" ]]; then
pacman -Rcns --noconfirm *docker*
pacman -Sy --noconfirm docker docker-compose &&
pacman -Sy --noconfirm docker docker-compose docker-buildx ca-certificates &&
echo "Success!" &&
exit 0
fi