2019-10-04 17:51:07 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -e
|
|
|
|
|
|
|
|
NAME=nextcloud
|
|
|
|
USER=rclone
|
|
|
|
PASS=ArmorAbleMale6
|
2024-04-08 17:51:49 +02:00
|
|
|
PORT=28629
|
2019-10-04 17:51:07 +02:00
|
|
|
|
|
|
|
. $(dirname "$0")/docker.bash
|
|
|
|
|
|
|
|
start() {
|
|
|
|
docker run --rm -d --name $NAME \
|
|
|
|
-e "SQLITE_DATABASE=nextcloud.db" \
|
|
|
|
-e "NEXTCLOUD_ADMIN_USER=rclone" \
|
|
|
|
-e "NEXTCLOUD_ADMIN_PASSWORD=$PASS" \
|
|
|
|
-e "NEXTCLOUD_TRUSTED_DOMAINS=*.*.*.*" \
|
2024-04-08 17:51:49 +02:00
|
|
|
-p 127.0.0.1:${PORT}:80 \
|
2019-10-04 17:51:07 +02:00
|
|
|
nextcloud:latest
|
|
|
|
|
|
|
|
echo type=webdav
|
2024-04-08 17:51:49 +02:00
|
|
|
echo url=http://127.0.0.1:${PORT}/remote.php/dav/files/$USER/
|
2019-10-04 17:51:07 +02:00
|
|
|
echo user=$USER
|
|
|
|
echo pass=$(rclone obscure $PASS)
|
2022-05-20 11:06:55 +02:00
|
|
|
echo vendor=nextcloud
|
2024-04-08 17:51:49 +02:00
|
|
|
echo _connect=127.0.0.1:${PORT}
|
2019-10-04 17:51:07 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
. $(dirname "$0")/run.bash
|