services: ship syncthing

syncing via syncthing is way better and more reliable that using nextcloud's syncclient

mount syncthing to nextcloud as external storage, nextcloud now is essentially just used as fancy ui and a caldav server, and some other apps
master
EmaMaker 2022-01-11 21:15:49 +00:00
parent c6e01d4696
commit 1b568a7f2d
3 changed files with 38 additions and 4 deletions

View File

@ -89,3 +89,6 @@ These are the available environment variables:
### Searx
* **SEARX_DIR**: Folder for searx files
### Syncthing
* **SYNCTHING_DIR**: Folder for syncthing files

View File

@ -3,7 +3,7 @@ version: '2'
services:
db:
image: mariadb:10.5
# restart: always
restart: always
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
volumes:
- $NEXTCLOUD_DB_DATADIR:/var/lib/mysql
@ -17,7 +17,7 @@ services:
app:
image: nextcloud:latest
# restart: always
restart: always
expose:
- "80"
- "443"
@ -25,6 +25,7 @@ services:
- db
volumes:
- $NEXTCLOUD_DATADIR:/var/www/html
- $SYNCTHING_DIR:/syncthing
environment:
# - NEXTCLOUD_ADMIN_USER=testuser #this is just for initial setup, and the user can be delete afterwards
# - NEXTCLOUD_ADMIN_PASSWORD=test123
@ -33,9 +34,9 @@ services:
- MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud
- MYSQL_HOST=db
- VIRTUAL_HOST=files.$LETSENCRYPT_DOMAIN
- VIRTUAL_HOST=nextcloud.$LETSENCRYPT_DOMAIN
- VIRTUAL_PORT=80
- LETSENCRYPT_HOST=files.$LETSENCRYPT_DOMAIN
- LETSENCRYPT_HOST=nextcloud.$LETSENCRYPT_DOMAIN
- LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL
networks:
- default

View File

@ -0,0 +1,30 @@
version: "3"
services:
syncthing:
image: syncthing/syncthing
container_name: syncthing
hostname: mininas
volumes:
- $SYNCTHING_DIR:/var/syncthing
expose:
- 8384
- 22000/tcp
- 22000/udp
environment:
- PUID=33
- PGID=33
# - PUID=1000
# - PGID=1000
- VIRTUAL_HOST=files.$LETSENCRYPT_DOMAIN
- VIRTUAL_PORT=8384
- LETSENCRYPT_HOST=files.$LETSENCRYPT_DOMAIN
- LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL
restart: unless-stopped
networks:
- default
networks:
default:
external:
name: $SERVER_DOCKER_NETWORKNAME