diff --git a/nsdmaker/.env.sample b/nsdmaker/.env.sample new file mode 100644 index 0000000..86beea2 --- /dev/null +++ b/nsdmaker/.env.sample @@ -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 diff --git a/nsdmaker/compose.yml b/nsdmaker/compose.yml new file mode 100644 index 0000000..3682fd4 --- /dev/null +++ b/nsdmaker/compose.yml @@ -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