mirror of
https://github.com/yanhao98/docker-example.git
synced 2025-07-13 08:00:49 +08:00
15 lines
527 B
Bash
15 lines
527 B
Bash
#!/bin/bash
|
|
# https://github.com/linuxserver/docker-duplicati
|
|
# https://github.com/duplicati/duplicati/blob/master/ReleaseBuilder/Resources/Docker/README.md
|
|
|
|
DOMAIN=❗️❗️❗️
|
|
PASSWORD=❗️❗️❗️
|
|
|
|
docker run -d -p 8500:8200 --name duplicati_canary \
|
|
-v duplicati-data:/data \
|
|
-v ~/_docker-stacks:/_docker-stacks \
|
|
-e "TZ=Asia/Shanghai" \
|
|
-e "DUPLICATI__WEBSERVICE_PASSWORD=$PASSWORD" \
|
|
-e "DUPLICATI__WEBSERVICE_ALLOWED_HOSTNAMES=$DOMAIN" \
|
|
duplicati/duplicati:canary
|
|
docker logs -f duplicati_canary |