fix: deploy
This commit is contained in:
parent
6b0c58bdc5
commit
da8129fa56
|
@ -1,10 +0,0 @@
|
||||||
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
|
|
|
@ -1,6 +1,13 @@
|
||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
|
|
||||||
# DEPLOYTIME=$(date +%s%3N)
|
# DEPLOYTIME=$(date +%s%3N)
|
||||||
|
# Check if .env file exists
|
||||||
|
if [ ! -f .env ]; then
|
||||||
|
echo "Error: .env file not found in /var/www/owncloud"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
export $(cat .env | xargs)
|
export $(cat .env | xargs)
|
||||||
envsubst < docker-stack.yml | docker stack deploy selfhosted-owncloud --compose-file=docker-stack.yml --with-registry-auth --resolve-image always
|
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 \
|
# curl -X POST https://log.spares.nu/api/annotations \
|
||||||
|
|
|
@ -49,6 +49,7 @@ services:
|
||||||
retries: 5
|
retries: 5
|
||||||
volumes:
|
volumes:
|
||||||
- mysql:/var/lib/mysql
|
- mysql:/var/lib/mysql
|
||||||
|
- ./mariadb-init.sh:/docker-entrypoint-initdb.d/mariadb-init.sh
|
||||||
|
|
||||||
redis:
|
redis:
|
||||||
image: redis:6
|
image: redis:6
|
||||||
|
|
Loading…
Reference in New Issue