New addition: NSD-Maker

This commit is contained in:
2023-09-14 21:19:00 +02:00
parent 69b74ae929
commit 33d6a69560
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
#NSDMAKER_CONTAINER_NAME=NSDMaker
#NSDMAKER_TAG=latest
#NSDMAKER_PORT=80
+19
View File
@@ -0,0 +1,19 @@
services:
# NSD-Maker
nsdmaker:
container_name: ${NSDMAKER_CONTAINER_NAME:-NSDMaker}
image: httpd:${NSDMAKER_TAG:-latest}
command: >
sh -c "apt-get update && \
apt-get install -y curl unzip && \
curl -L -o nsdmaker.zip https://github.com/charyan/nsdmaker/archive/refs/heads/master.zip && \
unzip nsdmaker.zip && \
mv -f nsdmaker-master/* /usr/local/apache2/htdocs/ && \
rm nsdmaker.zip && \
rm -rf nsdmaker-master/ && \
httpd-foreground"
restart: ${RESTART:-unless-stopped}
healthcheck:
test: curl -f http://localhost:80/ || exit 1
ports:
- ${NSDMAKER_PORT:-80}:80