Stabilize Hyperling.com (#21)

* Make the backup puller a full-fledged script after all.

* Finish the main portion.

* Remove version tag to avoid log errors on Docker 26.0, Compose 2.25.0.

* Try moving to a smaller, faster, more stable image.

* Move Nextcloud to the stable tag.

* Add shortcut aliases.

* Rename container website to www.

* Do not install the latest of the PHP or Node programs if a version already exists in the container.

* We need git!!

* Try only git and the PHP interpretor.

* Remove comments.

* Install express at the image layer, not during runtime.

* Let the app install express after all.

* Remove warning about apt CLI.

* Try to cache the express download/install.

* Fix caching of Node packages.
This commit is contained in:
2024-04-03 20:21:38 -07:00
committed by GitHub
parent 1ef1903f6b
commit fc7a5dc57d
12 changed files with 93 additions and 58 deletions

View File

@ -5,8 +5,6 @@
# https://thekelleys.org.uk/dnsmasq/doc.html
#
version: '3'
services:
app:
container_name: dns-app

View File

@ -3,12 +3,18 @@
# Using Debian testing so that we use PHP >8. Otherwise the shebangs from
# the include files (#!/usr/bin/php) show up on the website.
FROM debian:testing
FROM node:lts-slim
# Install Dependencies
RUN apt update && apt install -y sudo php-fpm nodejs npm
# Cache System Dependencies
RUN apt-get update && apt-get install -y git php-cli
# Run Website
# Cache Node Dependencies
RUN mkdir -p /var/www/api
WORKDIR /var/www/api
RUN echo '{ "dependencies": { "express": "" } }' > package.json
RUN npm install
# Install + Run Website
CMD cd /var/www/api && \
rm -rfv pages main.js run.sh && \
git clone https://github.com/Hyperling/Website website && \

View File

@ -2,11 +2,9 @@
# Hyperling.com configuration.
# 2023-01-24 container needs 128M to get started fully then settles to 25M.
version: '2'
services:
app:
container_name: website-app
container_name: www-app
build:
context: ./
network: host

View File

@ -1,11 +1,9 @@
# 2022-10-29
# Hyperling.com configuration.
version: '2'
services:
app:
container_name: website-app
container_name: www-app
build:
context: ./
network: host

View File

@ -18,8 +18,6 @@
# 2024-01-23
# Experimenting with how small a Nextcloud installation can survive.
version: '3'
services:
## MariaDB ##
@ -74,7 +72,7 @@ services:
## Nextcloud ##
nc-app:
container_name: nc-app
image: nextcloud
image: nextcloud:stable
restart: always
ports:
- 8080:80

View File

@ -16,8 +16,6 @@
# to maintain and may allow the internal address to be based on container
# name instead of the docker hosts's IP.
version: '3'
services:
## MariaDB ##
@ -75,7 +73,7 @@ services:
## Nextcloud ##
nc-app:
container_name: nc-app
image: nextcloud
image: nextcloud:stable
restart: always
ports:
- 8080:80

View File

@ -35,8 +35,6 @@
# 2023-09-15: File created and tweaked based on 'https://dl.photoprism.app/docker/docker-compose.yml'.
##
version: '3.5'
services:
pp-app:
container_name: pp-app

View File

@ -5,8 +5,6 @@
# https://www.docker.com/blog/how-to-use-the-official-nginx-docker-image/
# https://pentacent.medium.com/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71
version: '3'
services:
app:

View File

@ -5,8 +5,6 @@
# https://www.docker.com/blog/how-to-use-the-official-nginx-docker-image/
# https://pentacent.medium.com/nginx-and-lets-encrypt-with-docker-in-less-than-5-minutes-b4b8a60d3a71
version: '3'
services:
app: