From 0cf401ac8c04fc5863af0181a9bafdf8b73eca3a Mon Sep 17 00:00:00 2001 From: thoralmighty Date: Thu, 6 Jun 2024 11:34:55 +0200 Subject: [PATCH 1/4] Added syncthing --- naspi/syncthing/docker-compose.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 naspi/syncthing/docker-compose.yml diff --git a/naspi/syncthing/docker-compose.yml b/naspi/syncthing/docker-compose.yml new file mode 100644 index 0000000..90a6253 --- /dev/null +++ b/naspi/syncthing/docker-compose.yml @@ -0,0 +1,19 @@ +services: + syncthing: + image: lscr.io/linuxserver/syncthing:latest + container_name: syncthing + hostname: syncthing #optional + environment: + - PUID=1000 + - PGID=1000 + - TZ=Etc/UTC + volumes: + - /mnt/data/storage/syncthing/config:/config + - /mnt/data/storage/syncthing/data:/data + # - /path/to/data2:/data2 + ports: + - 8384:8384 + - 22000:22000/tcp + - 22000:22000/udp + - 21027:21027/udp + restart: unless-stopped From e4d9f69e3f9a298ab8af103a40845f42a92aa355 Mon Sep 17 00:00:00 2001 From: thoralmighty Date: Sun, 21 Jul 2024 12:27:53 +0200 Subject: [PATCH 2/4] Updated start/stop scripts to use docker compose, as docker-compose has been deprecated --- naspi/all-start.sh | 4 ++++ naspi/all-stop.sh | 4 ++++ naspi/startall.sh | 10 ---------- 3 files changed, 8 insertions(+), 10 deletions(-) create mode 100755 naspi/all-start.sh create mode 100755 naspi/all-stop.sh delete mode 100755 naspi/startall.sh diff --git a/naspi/all-start.sh b/naspi/all-start.sh new file mode 100755 index 0000000..77fef89 --- /dev/null +++ b/naspi/all-start.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# will skip folders with a leading "_" (indicating not used) +for d in ./[^_]*/ ; do (cd $d && docker compose up -d && cd ..); done diff --git a/naspi/all-stop.sh b/naspi/all-stop.sh new file mode 100755 index 0000000..e04e026 --- /dev/null +++ b/naspi/all-stop.sh @@ -0,0 +1,4 @@ +#!/bin/bash + +# will skip folders with a leading "_" (indicating not used) +for d in ./[^_]*/ ; do (cd $d && docker compose down && cd ..); done diff --git a/naspi/startall.sh b/naspi/startall.sh deleted file mode 100755 index f6c143e..0000000 --- a/naspi/startall.sh +++ /dev/null @@ -1,10 +0,0 @@ -#!/bin/bash - -if [ $(basename $(readlink $PWD)) != $(hostname) ]; then - echo "Incorrect directory for host" - exit 1 -fi - -# will skip folders with a leading "_" (indicating not used) - -for d in ./[^_]*/ ; do (cd $d && docker-compose up -d && cd ..); done From c0c6bfc9065e70238c72c4c0849acb510777c162 Mon Sep 17 00:00:00 2001 From: thoralmighty Date: Sun, 21 Jul 2024 12:28:09 +0200 Subject: [PATCH 3/4] Added pingvin-share --- naspi/pingvin-share/docker-compose.yml | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 naspi/pingvin-share/docker-compose.yml diff --git a/naspi/pingvin-share/docker-compose.yml b/naspi/pingvin-share/docker-compose.yml new file mode 100644 index 0000000..721109f --- /dev/null +++ b/naspi/pingvin-share/docker-compose.yml @@ -0,0 +1,20 @@ +version: '3.8' +services: + pingvin-share: + container_name: pingvin-share + image: stonith404/pingvin-share + restart: unless-stopped + ports: + - 3000:3000 + volumes: + - "./data:/opt/app/backend/data" + - "./data/images:/opt/app/frontend/public/img" +# Optional: If you add ClamAV, uncomment the following to have ClamAV start first. +# depends_on: +# clamav: +# condition: service_healthy +# Optional: Add ClamAV (see README.md) +# ClamAV is currently only available for AMD64 see https://github.com/Cisco-Talos/clamav/issues/482 +# clamav: +# restart: unless-stopped +# image: clamav/clamav From bedcf237f34028b4bc4e65c38499c902929f6888 Mon Sep 17 00:00:00 2001 From: thoralmighty Date: Sun, 21 Jul 2024 12:28:46 +0200 Subject: [PATCH 4/4] Added restart: unless-stopped to vaultwarden --- naspi/vaultwarden/docker-compose.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/naspi/vaultwarden/docker-compose.yml b/naspi/vaultwarden/docker-compose.yml index 741582f..81e398e 100644 --- a/naspi/vaultwarden/docker-compose.yml +++ b/naspi/vaultwarden/docker-compose.yml @@ -7,8 +7,11 @@ services: ports: - '5080:80' image: 'vaultwarden/server:latest' + restart: unless-stopped networks: - proxy + environment: + ADMIN_TOKEN: ${ADMIN_TOKEN} networks: proxy: external: true