Add syncthing

Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
Bensuperpc 2024-05-06 09:03:17 +02:00
parent aee30a0aaf
commit 817d09683b
No known key found for this signature in database
GPG Key ID: 15D0B1525584D383
5 changed files with 41 additions and 4 deletions

View File

@ -13,7 +13,7 @@
DOCKER := docker DOCKER := docker
PROFILES := webserver wordpress adminer uptime-kuma portainer qbittorrent gitea jellyfin watchtower backup openssh PROFILES := webserver wordpress adminer uptime-kuma portainer qbittorrent gitea jellyfin watchtower backup syncthing openssh
PROFILE_CMD := $(addprefix --profile ,$(PROFILES)) PROFILE_CMD := $(addprefix --profile ,$(PROFILES))
COMPOSE_FILES := $(shell find docker-compose*.yml | sed -e 's/^/--file /') COMPOSE_FILES := $(shell find docker-compose*.yml | sed -e 's/^/--file /')

View File

@ -70,10 +70,12 @@ And then, caddy will generate the certificate for you and renew it automatically
| git.bensuperpc.org | Sub | Gitea for git | | git.bensuperpc.org | Sub | Gitea for git |
| link.bensuperpc.org | Sub | For link shortener | | link.bensuperpc.org | Sub | For link shortener |
| jellyfin.bensuperpc.org | Sub | Jellyfin for media server | | jellyfin.bensuperpc.org | Sub | Jellyfin for media server |
| syncthing.bensuperpc.org | Sub | SyncThing for file synchronization |
| ssh.bensuperpc.org | Sub | Openssh for ssh |
| bensuperpc.com | Main | Redirect to bensuperpc.org | | bensuperpc.com | Main | Redirect to bensuperpc.org |
| bensuperpc.fr | Sub | Redirect to bensuperpc.org | | bensuperpc.fr | Main | Redirect to bensuperpc.org |
| bensuperpc.net | Sub | Redirect to bensuperpc.org | | bensuperpc.net | Main | Redirect to bensuperpc.org |
| bensuperpc.ovh | Sub | Redirect to bensuperpc.org | | bensuperpc.ovh | Main | Redirect to bensuperpc.org |
### Configure the infrastructure ### Configure the infrastructure
@ -163,6 +165,8 @@ You can find all services on the [docker-compose.yml](docker-compose.yml) file o
| Torrent | Torrent server | [torrent.bensuperpc.org](https://torrent.bensuperpc.org) | | Torrent | Torrent server | [torrent.bensuperpc.org](https://torrent.bensuperpc.org) |
| Gitea | Gitea for git | [git.bensuperpc.org](https://git.bensuperpc.org) | | Gitea | Gitea for git | [git.bensuperpc.org](https://git.bensuperpc.org) |
| Jellyfin | Jellyfin for media server | [jellyfin.bensuperpc.org](https://jellyfin.bensuperpc.org) | | Jellyfin | Jellyfin for media server | [jellyfin.bensuperpc.org](https://jellyfin.bensuperpc.org) |
| SyncThing | SyncThing for file synchronization | [syncthing.bensuperpc.org](https://syncthing.bensuperpc.org) |
| Openssh | Openssh for ssh | [ssh.bensuperpc.org](https://ssh.bensuperpc.org) |
## URL ## URL

View File

@ -60,6 +60,12 @@ ssh.bensuperpc.org {
reverse_proxy openssh:2222 reverse_proxy openssh:2222
} }
syncthing.bensuperpc.org {
reverse_proxy syncthing:8384 {
header_up Host {upstream_hostport}
}
}
link.bensuperpc.org { link.bensuperpc.org {
redir /rickroll https://www.youtube.com/watch?v=dQw4w9WgXcQ permanent redir /rickroll https://www.youtube.com/watch?v=dQw4w9WgXcQ permanent
redir /babyshark https://www.youtube.com/watch?v=XqZsoesa55w permanent redir /babyshark https://www.youtube.com/watch?v=XqZsoesa55w permanent

View File

@ -0,0 +1,25 @@
version: '3.9'
services:
# syncthing
syncthing:
image: linuxserver/syncthing:latest
container_name: syncthing
profiles:
- syncthing
restart: on-failure
env_file:
- env/syncthing.env
volumes:
- syncthing_config:/config
- syncthing_data:/data1
networks:
- infra-network
security_opt:
- no-new-privileges:true
volumes:
syncthing_config:
name: syncthing_config
syncthing_data:
name: syncthing_data

2
env/syncthing.env vendored Normal file
View File

@ -0,0 +1,2 @@
PUID=1000
PGID=1000