Compare commits

...

4 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
82cd61a129 pull always; pgadmin persistence; reformat 2023-02-22 09:38:26 +01:00
b869c93b4b init 2023-02-22 09:38:26 +01:00
2 changed files with 38 additions and 7 deletions

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

View File

@ -1,19 +1,19 @@
#!/bin/sh
podman pull dpage/pgadmin4
podman pull postgres:14
podman pod create --name postgres-pod \
--replace=true \
-p 5080:80 \
-p 5432:5432
podman run --name main-db --pod postgres-pod --replace=true \
-v pgdata:/var/lib/postgresql/data \
-e POSTGRES_PASSWORD=postgres \
-d postgres:14
--pull=always \
-v pgdata:/var/lib/postgresql/data \
-e POSTGRES_PASSWORD=postgres \
-d postgres:14
podman run --name pgadmin --pod postgres-pod --replace=true \
-e PGADMIN_DEFAULT_EMAIL="hello@postgres" \
--pull=always \
-v pgadmindata:/var/lib/pgadmin \
-e PGADMIN_DEFAULT_EMAIL="hello@postgres.xyz" \
-e PGADMIN_DEFAULT_PASSWORD="postgres" \
-d dpage/pgadmin4