Files
kontor/script/create_pod_kontor
T
Thomas Peetz 0ad1969614
Gitea Actions Demo / Explore-Gitea-Actions (push) Successful in 8s
separate podman pod creation in several files
2026-09-15 13:42:09 +02:00

40 lines
759 B
Bash
Executable File

#!/bin/bash
# script/create_pod_kontor: Set up container for the first time after cloning
set -e
cd "$(dirname "$0")/.."
source version
echo "==> Setting up pod kontor"
if podman pod exists kontor; then
echo " => pod kontor exists"
if podman pod ps --filter "name=kontor" --filter "status=running"; then
echo " => pod kontor is running"
else
podman pod start kontor
fi
else
podman pod create --name kontor \
--infra \
-p 5432:5432 \
-p 8100:8100 \
-p 8200:8200 \
-p 8300:8300 \
-p 8400:8400 \
-p 8500:8500 \
-p 8600:8600 \
-p 8700:8700 \
-p 8800:8800 \
-p 8900:8080 \
-p 9876:80 \
-p 61616:61616 \
-p 8161:8161 \
-p 5672:5672 \
--network bridge
fi