New addition: Structogram Editor

This commit is contained in:
2023-09-14 21:19:23 +02:00
parent 33d6a69560
commit b9592cdfb5
2 changed files with 24 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
# Uncomment and change the following variables if you want to use them.
#RESTART=unless-stopped
#STRUCTOGRAMEDITOR_CONTAINER_NAME=StructogramEditor
#STRUCTOGRAMEDITOR_TAG=latest
#STRUCTOGRAMEDITOR_PORT=80
+19
View File
@@ -0,0 +1,19 @@
services:
# Structogram Editor
structogrameditor:
container_name: ${STRUCTOGRAMEDITOR_CONTAINER_NAME:-StructogramEditor}
image: httpd:${STRUCTOGRAMEDITOR_TAG:-latest}
command: >
sh -c "apt-get update && \
apt-get install -y curl unzip && \
curl -L -o structogramview.zip https://github.com/nigjo/structogramview/archive/refs/heads/main.zip && \
unzip structogramview.zip && \
mv -f structogramview-main/* /usr/local/apache2/htdocs/ && \
rm structogramview.zip && \
rm -rf structogramview-main/ && \
httpd-foreground"
restart: ${RESTART:-unless-stopped}
healthcheck:
test: curl -f http://localhost:80/ || exit 1
ports:
- ${STRUCTOGRAMEDITOR_PORT:-80}:80