mirror of
https://github.com/bensuperpc/infrastructure.git
synced 2024-12-22 08:44:28 +01:00
Add syncthing
Signed-off-by: Bensuperpc <bensuperpc@gmail.com>
This commit is contained in:
parent
aee30a0aaf
commit
817d09683b
2
Makefile
2
Makefile
@ -13,7 +13,7 @@
|
||||
|
||||
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))
|
||||
|
||||
COMPOSE_FILES := $(shell find docker-compose*.yml | sed -e 's/^/--file /')
|
||||
|
10
README.md
10
README.md
@ -70,10 +70,12 @@ And then, caddy will generate the certificate for you and renew it automatically
|
||||
| git.bensuperpc.org | Sub | Gitea for git |
|
||||
| link.bensuperpc.org | Sub | For link shortener |
|
||||
| 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.fr | Sub | Redirect to bensuperpc.org |
|
||||
| bensuperpc.net | Sub | Redirect to bensuperpc.org |
|
||||
| bensuperpc.ovh | Sub | Redirect to bensuperpc.org |
|
||||
| bensuperpc.fr | Main | Redirect to bensuperpc.org |
|
||||
| bensuperpc.net | Main | Redirect to bensuperpc.org |
|
||||
| bensuperpc.ovh | Main | Redirect to bensuperpc.org |
|
||||
|
||||
### 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) |
|
||||
| Gitea | Gitea for git | [git.bensuperpc.org](https://git.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
|
||||
|
||||
|
@ -60,6 +60,12 @@ ssh.bensuperpc.org {
|
||||
reverse_proxy openssh:2222
|
||||
}
|
||||
|
||||
syncthing.bensuperpc.org {
|
||||
reverse_proxy syncthing:8384 {
|
||||
header_up Host {upstream_hostport}
|
||||
}
|
||||
}
|
||||
|
||||
link.bensuperpc.org {
|
||||
redir /rickroll https://www.youtube.com/watch?v=dQw4w9WgXcQ permanent
|
||||
redir /babyshark https://www.youtube.com/watch?v=XqZsoesa55w permanent
|
||||
|
25
docker-compose.syncthing.yml
Normal file
25
docker-compose.syncthing.yml
Normal 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
2
env/syncthing.env
vendored
Normal file
@ -0,0 +1,2 @@
|
||||
PUID=1000
|
||||
PGID=1000
|
Loading…
Reference in New Issue
Block a user