From 604b67172cca8d61f3771b138a19580bcf7b036e Mon Sep 17 00:00:00 2001 From: Michel Date: Sun, 10 Sep 2023 01:22:27 +0200 Subject: [PATCH] New addition: WebsiteShot --- websiteshot/.env.sample | 7 +++++++ websiteshot/compose.yml | 13 +++++++++++++ 2 files changed, 20 insertions(+) create mode 100644 websiteshot/.env.sample create mode 100644 websiteshot/compose.yml diff --git a/websiteshot/.env.sample b/websiteshot/.env.sample new file mode 100644 index 0000000..eacbb14 --- /dev/null +++ b/websiteshot/.env.sample @@ -0,0 +1,7 @@ +# Uncomment and change the following variables if you want to use them. +#RESTART=unless-stopped +#SYNOLOGY_VOLUME=volume1 +#STACK_NAME=websiteshot +#WEBSITESHOT_CONTAINER_NAME=WebsiteShot +#WEBSITESHOT_TAG=latest +#WEBSITESHOT_PORT=3000 diff --git a/websiteshot/compose.yml b/websiteshot/compose.yml new file mode 100644 index 0000000..4aad044 --- /dev/null +++ b/websiteshot/compose.yml @@ -0,0 +1,13 @@ +services: + # WebsiteShot + websiteshot: + container_name: ${WEBSITESHOT_CONTAINER_NAME:-WebsiteShot} + hostname: websiteshot + image: flowko1/website-shot:${WEBSITESHOT_TAG:-latest} + restart: ${RESTART:-unless-stopped} + healthcheck: + test: wget --no-verbose --tries=1 --spider http://localhost:3000/ + ports: + - ${WEBSITESHOT_PORT:-3000}:3000 + volumes: + - /${SYNOLOGY_VOLUME:-volume1}/docker/${STACK_NAME:-websiteshot}/${WEBSITESHOT_CONTAINER_NAME:-WebsiteShot}/usr/src/website-shot/screenshots:/usr/src/website-shot/screenshots