Add Micro Configurations (#18)
* Begin changing files to recommendations rather than actual contents, that way multiple examples can be shown and when they are changed to be the real .yml they are not added to the project. * Shrink the PHP limits more. * Convert all configurations to be micro/standard. * Double check the script supports IPv6. Shrink case statement. * Fix uncommented nc-oo. * Shrink NC further. * Change name of env example. * Change name of env example. * Do not provide micro versions of DNS or PhotoPrism. * Fix error in NC checks, wants at least 512M. * Shrink more. * Add a folder to keep static resources. * Copy static resources into the container. This unfortunately doubles the size right now. Maybe do a volume in the future. * Bring the description up to date. * Make the description slightly more agnostic. * Be more consistent about using variable.
This commit is contained in:
@ -8,8 +8,15 @@ 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 && \
|
||||
./run.sh
|
||||
|
18
Config/Hyperling.com/docker-compose.micro.yml
Normal file
18
Config/Hyperling.com/docker-compose.micro.yml
Normal file
@ -0,0 +1,18 @@
|
||||
# 2022-10-29
|
||||
# Hyperling.com configuration.
|
||||
|
||||
version: '2'
|
||||
|
||||
services:
|
||||
app:
|
||||
container_name: website-app
|
||||
build: ./
|
||||
restart: always
|
||||
ports:
|
||||
- 8317:8080
|
||||
deploy:
|
||||
mode: global
|
||||
resources:
|
||||
limits:
|
||||
cpus: '0.10'
|
||||
memory: 32M
|
5
Config/Hyperling.com/files/README.md
Normal file
5
Config/Hyperling.com/files/README.md
Normal file
@ -0,0 +1,5 @@
|
||||
# Hyperling.com - files/
|
||||
|
||||
This is copied to the container's www/files/ folder for hosting static content.
|
||||
|
||||
TBD: Make this a volume, rather than copying with `Dockerfile`.
|
Reference in New Issue
Block a user