Files
docker-compose-collection/structogrameditor/compose.yml
T

20 lines
741 B
YAML

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