Compare commits

...

2 Commits

Author SHA1 Message Date
3ae888e62a nextcloud pod file 2023-02-22 10:28:31 +01:00
de3dc53d28 remove pijul leftovers 2023-02-22 09:40:23 +01:00
9 changed files with 31 additions and 17 deletions

View File

@ -1,2 +0,0 @@
.git
.DS_Store

View File

@ -1,3 +0,0 @@
default_remote = "https://nest.pijul.com/rdiedrich/pod-files"
[hooks]
record = []

View File

@ -1,12 +0,0 @@
{
"public_key": {
"version": 0,
"algorithm": "Ed25519",
"signature": "4B79Pmt7V6UD3jaXGjEfw529DJbn1dcZDcqCGWXt1CJX5Jz7nE16WB1wbDZyrj9cKD7CFBXitxaZwgBtdjwPgULo",
"key": "FRyJoC1cQXbNjpgLHwNZGvEQZ2MNQvHYJc8kCcuCtivv"
},
"login": "rdiedrich",
"origin": "nest.pijul.com",
"email": "dev@rdiedri.ch",
"last_modified": 1664973372
}

Binary file not shown.

31
pod-nextcloud.sh Normal file
View File

@ -0,0 +1,31 @@
#!/bin/sh
set -e
podman pod create --name nextcloud-pod --replace=true \
-p 8080:80 \
-p 5080:5080
podman run --name=nextcloud-db --pod=nextcloud-pod -d --replace=true \
--pull=always \
-e POSTGRES_PASSWORD="" \
-e POSTGRES_USER="nextcloud" \
-v postgres-data:/var/lib/postgresql/data \
postgres:15
podman run --name pgadmin --pod nextcloud-pod -d --replace=true \
--pull=always \
-v pgadmindata:/var/lib/pgadmin \
-e PGADMIN_LISTEN_PORT=5080 \
-e PGADMIN_DEFAULT_EMAIL="" \
-e PGADMIN_DEFAULT_PASSWORD="" \
-d dpage/pgadmin4
podman run --name=nextcloud-app --pod=nextcloud-pod -d --replace=true \
--pull=always \
--health-cmd="curl http://localhost || exit 1" \
-v /mnt/var/local/nextcloud:/var/www/html:Z \
-v /mnt/nas/projekte:/mnt/projekte --security-opt label=disable \
-v /mnt/nas/archiv:/mnt/archiv --security-opt label=disable \
nextcloud:25