run docker dev nextcloud

- missing clone info
- missing setup of certificates (mkcert and so one ... )
This commit is contained in:
2025-09-29 16:05:00 +02:00
parent ad09c3ec72
commit 6a2ccb5d2b
4 changed files with 379 additions and 33 deletions

43
nextcloud_devenv/runit.sh Executable file
View File

@@ -0,0 +1,43 @@
#!/bin/bash
# SPDX-FileCopyrightText: 2025 artlog@l0g.eu
# SPDX-License-Identifier: AGPL-3.0-or-later
#
toolsdir=lib
pushd $toolsdir >/dev/null
toolsdir=$(pwd)
source metascript.sh
popd >/dev/null
while [[ $# > 0 ]]
do
case "$1" in
up|down)
action=$1
;;
*)
parsemetaarg "$1"
;;
esac
shift
done
metarun=metarun
metasudo=sudo
enforcedir nextcloud-docker-dev exists
pushd nextcloud-docker-dev
if [[ $action = down ]]
then
$metarun podman-compose down
fi
services=(nextcloud proxy database-mysql)
if [[ $action == up ]]
then
$metarun podman-compose --env-file $(pwd)/.env $action "${services[@]}"
fi
popd