From 3e4e82a8222871fbc28e5bb2fc20da065fac1f1d Mon Sep 17 00:00:00 2001 From: Michel Date: Thu, 14 Sep 2023 20:36:10 +0200 Subject: [PATCH] New addition: Woordle --- woordle/.env.sample | 5 +++++ woordle/compose.yml | 19 +++++++++++++++++++ 2 files changed, 24 insertions(+) create mode 100644 woordle/.env.sample create mode 100644 woordle/compose.yml diff --git a/woordle/.env.sample b/woordle/.env.sample new file mode 100644 index 0000000..db30650 --- /dev/null +++ b/woordle/.env.sample @@ -0,0 +1,5 @@ +# Uncomment and change the following variables if you want to use them. +#RESTART=unless-stopped +#WOORDLE_CONTAINER_NAME=Woordle +#WOORDLE_TAG=latest +#WOORDLE_PORT=80 diff --git a/woordle/compose.yml b/woordle/compose.yml new file mode 100644 index 0000000..dd00ecb --- /dev/null +++ b/woordle/compose.yml @@ -0,0 +1,19 @@ +services: + # Woordle + nsdmaker: + container_name: ${WOORDLE_CONTAINER_NAME:-Woordle} + image: httpd:${WOORDLE_TAG:-latest} + command: > + sh -c "apt-get update && \ + apt-get install -y curl unzip && \ + curl -L -o woordle.zip https://github.com/pingiun/woordle/archive/refs/heads/main.zip && \ + unzip woordle.zip && \ + mv -f woordle-main/app/* /usr/local/apache2/htdocs/ && \ + rm woordle.zip && \ + rm -rf woordle-main/ && \ + httpd-foreground" + restart: ${RESTART:-unless-stopped} + healthcheck: + test: curl -f http://localhost:80/ || exit 1 + ports: + - ${WOORDLE_PORT:-80}:80