diff --git a/structogrameditor/.env.sample b/structogrameditor/.env.sample new file mode 100644 index 0000000..4916b48 --- /dev/null +++ b/structogrameditor/.env.sample @@ -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 diff --git a/structogrameditor/compose.yml b/structogrameditor/compose.yml new file mode 100644 index 0000000..a12a0fa --- /dev/null +++ b/structogrameditor/compose.yml @@ -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