From 6b0c58bdc5eeeb86a306f74713bc492e4e9f3c10 Mon Sep 17 00:00:00 2001 From: "Urko." Date: Sun, 24 Dec 2023 20:23:56 +0100 Subject: [PATCH] fix: deploy script --- configs/owncloud.example.yml | 10 ++++++++++ deploy.sh | 3 ++- 2 files changed, 12 insertions(+), 1 deletion(-) create mode 100644 configs/owncloud.example.yml diff --git a/configs/owncloud.example.yml b/configs/owncloud.example.yml new file mode 100644 index 0000000..0f92c47 --- /dev/null +++ b/configs/owncloud.example.yml @@ -0,0 +1,10 @@ +OWNCLOUD_VERSION=10.13 +OWNCLOUD_DOMAIN=localhost:8080 +OWNCLOUD_TRUSTED_DOMAINS=localhost +ADMIN_USERNAME=cloud_admin +ADMIN_PASSWORD=fs4jfo74WYFYxCcoVUsNmoyvThYLFoF7PmAReeAVbPtCCJCNhWYa3jw +HTTP_PORT=8080 + +DB_USERNAME=cloud_user +DB_PASSWORD=gnVognVeF9cfKaKPiVjpThqzcUcLFC9abgCoCTWqCLCMxqtfTCMcNoM +DB_ROOT_PASSWORD=KswHciqHYwAnTJsNyXWCHjqFmJW4pYVfgPyhMh9JdjwdCUciwMNa7ad diff --git a/deploy.sh b/deploy.sh index 7c96a88..c087c5f 100644 --- a/deploy.sh +++ b/deploy.sh @@ -1,7 +1,8 @@ #!/bin/bash # DEPLOYTIME=$(date +%s%3N) -sudo docker stack deploy selfhosted-owncloud --compose-file=docker-stack.yml --with-registry-auth --resolve-image always +export $(cat .env | xargs) +envsubst < docker-stack.yml | docker stack deploy selfhosted-owncloud --compose-file=docker-stack.yml --with-registry-auth --resolve-image always # curl -X POST https://log.spares.nu/api/annotations \ # -H "Authorization: Bearer eyJrIjoiOGNhQVM5SkNaaEFlQ1FkTDFJNTdPNzhFazVuTko0TTEiLCJuIjoiZGVwbG95IiwiaWQiOjF9" \ # -H "Content-Type: application/json" \