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 appsmaster
parent
c6e01d4696
commit
1b568a7f2d
|
@ -89,3 +89,6 @@ These are the available environment variables:
|
||||||
|
|
||||||
### Searx
|
### Searx
|
||||||
* **SEARX_DIR**: Folder for searx files
|
* **SEARX_DIR**: Folder for searx files
|
||||||
|
|
||||||
|
### Syncthing
|
||||||
|
* **SYNCTHING_DIR**: Folder for syncthing files
|
||||||
|
|
|
@ -3,7 +3,7 @@ version: '2'
|
||||||
services:
|
services:
|
||||||
db:
|
db:
|
||||||
image: mariadb:10.5
|
image: mariadb:10.5
|
||||||
# restart: always
|
restart: always
|
||||||
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
command: --transaction-isolation=READ-COMMITTED --binlog-format=ROW
|
||||||
volumes:
|
volumes:
|
||||||
- $NEXTCLOUD_DB_DATADIR:/var/lib/mysql
|
- $NEXTCLOUD_DB_DATADIR:/var/lib/mysql
|
||||||
|
@ -17,7 +17,7 @@ services:
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: nextcloud:latest
|
image: nextcloud:latest
|
||||||
# restart: always
|
restart: always
|
||||||
expose:
|
expose:
|
||||||
- "80"
|
- "80"
|
||||||
- "443"
|
- "443"
|
||||||
|
@ -25,6 +25,7 @@ services:
|
||||||
- db
|
- db
|
||||||
volumes:
|
volumes:
|
||||||
- $NEXTCLOUD_DATADIR:/var/www/html
|
- $NEXTCLOUD_DATADIR:/var/www/html
|
||||||
|
- $SYNCTHING_DIR:/syncthing
|
||||||
environment:
|
environment:
|
||||||
# - NEXTCLOUD_ADMIN_USER=testuser #this is just for initial setup, and the user can be delete afterwards
|
# - NEXTCLOUD_ADMIN_USER=testuser #this is just for initial setup, and the user can be delete afterwards
|
||||||
# - NEXTCLOUD_ADMIN_PASSWORD=test123
|
# - NEXTCLOUD_ADMIN_PASSWORD=test123
|
||||||
|
@ -33,9 +34,9 @@ services:
|
||||||
- MYSQL_DATABASE=nextcloud
|
- MYSQL_DATABASE=nextcloud
|
||||||
- MYSQL_USER=nextcloud
|
- MYSQL_USER=nextcloud
|
||||||
- MYSQL_HOST=db
|
- MYSQL_HOST=db
|
||||||
- VIRTUAL_HOST=files.$LETSENCRYPT_DOMAIN
|
- VIRTUAL_HOST=nextcloud.$LETSENCRYPT_DOMAIN
|
||||||
- VIRTUAL_PORT=80
|
- VIRTUAL_PORT=80
|
||||||
- LETSENCRYPT_HOST=files.$LETSENCRYPT_DOMAIN
|
- LETSENCRYPT_HOST=nextcloud.$LETSENCRYPT_DOMAIN
|
||||||
- LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL
|
- LETSENCRYPT_EMAIL=$LETSENCRYPT_EMAIL
|
||||||
networks:
|
networks:
|
||||||
- default
|
- default
|
||||||
|
|
|
@ -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
|
Loading…
Reference in New Issue