summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToby Vincent <tobyv13@gmail.com>2021-05-01 15:39:41 -0500
committerToby Vincent <tobyv13@gmail.com>2021-05-01 16:06:20 -0500
commit9701ef802b157543a222b8c9e84a6a901a754541 (patch)
tree891270feca8900c6d7261bd0b5b5d3aeaeb9368c
initial commit
Signed-off-by: Toby Vincent <tobyv13@gmail.com>
-rwxr-xr-xdocker-compose.yml30
-rwxr-xr-xstack.yml41
2 files changed, 71 insertions, 0 deletions
diff --git a/docker-compose.yml b/docker-compose.yml
new file mode 100755
index 0000000..d132b4f
--- /dev/null
+++ b/docker-compose.yml
@@ -0,0 +1,30 @@
+version: "2.1"
+
+services:
+ syncthing:
+ image: ghcr.io/linuxserver/syncthing
+ container_name: syncthing
+ environment:
+ - PUID=1000
+ - PGID=1000
+ - TZ=America/Chicago
+ volumes:
+ - ./data:/config
+ - ${HOME}/Sync:/config/Sync
+ - ${HOME}/docker:/config/docker
+ - ${HOME}/dotfiles:/config/dotfiles
+ ports:
+ - 8384:8384
+ - 22000:22000
+ - 21027:21027/udp
+ restart: unless-stopped
+ labels:
+ - traefik.enable=true
+ - "traefik.http.routers.syncthing.rule=(HostRegexp(`sync.{domain}.com`) && Path(`/{{.Node.Hostname}}`))"
+ - traefik.http.routers.syncthing.entrypoints=websecure
+ - traefik.http.services.syncthing.loadbalancer.server.port=8384
+
+networks:
+ default:
+ external:
+ name: proxy \ No newline at end of file
diff --git a/stack.yml b/stack.yml
new file mode 100755
index 0000000..f988a9a
--- /dev/null
+++ b/stack.yml
@@ -0,0 +1,41 @@
+version: "2.1"
+
+services:
+ syncthing:
+ image: ghcr.io/linuxserver/syncthing
+ container_name: syncthing
+ environment:
+ - PUID=1000
+ - PGID=1000
+ - TZ=America/Chicago
+ volumes:
+ - syncthing:/config
+ - ${HOME}/Sync:/config/Sync
+ - ${HOME}/docker:/config/docker
+ - ${HOME}/dotfiles:/config/dotfiles
+ ports:
+ - 8384:8384
+ - 22000:22000
+ - 21027:21027/udp
+ restart: unless-stopped
+ deploy:
+ mode: replicated
+ replicas: 1
+ restart_policy:
+ condition: on-failure
+ delay: 5s
+ max_attempts: 3
+ labels:
+ - traefik.enable=true
+ - "traefik.http.routers.syncthing.rule=(Host(`sync.nasaltmine.com`) && Path(`/{{.Node.Hostname}}`))"
+ - traefik.http.routers.syncthing.entrypoints=websecure
+ - traefik.http.services.syncthing.loadbalancer.server.port=8384
+ - traefik.http.routers.syncthing.middlewares=secured@docker
+
+volumes:
+ syncthing:
+
+networks:
+ default:
+ external:
+ name: proxy \ No newline at end of file