rebased-podman/30-run-rebased.sh

34 lines
853 B
Bash
Raw Permalink Normal View History

#!/bin/bash
source ./script_config.sh
2022-11-11 21:09:51 +01:00
touch ./config/prod.secret.exs
2022-11-11 16:31:47 +01:00
echo Stopping old 'rebased-web' container...
podman stop rebased-web
podman rm rebased-web
2022-11-11 16:31:47 +01:00
echo Creating new 'rebased-web' container...
2022-11-11 21:09:51 +01:00
if [ ! -f ./config/prod.secret.exs ]; then
$conf=""
fi
podman run -d \
--name rebased-web \
--pod rebased-pod \
-v ./uploads:/var/lib/pleroma/uploads:z \
-v ./static:/var/lib/pleroma/static:z \
2022-11-11 16:31:47 +01:00
-v ./config:/config:rw \
2022-11-11 18:41:44 +01:00
-v ./config:/var/lib/pleroma/config \
2022-11-11 19:49:21 +01:00
-v ./config/prod.secret.exs:/var/lib/pleroma/config.exs \
-e DOMAIN=social.example.com \
-e INSTANCE_NAME=rebased \
-e ADMIN_EMAIL=admin@example.com \
-e NOTIFY_EMAIL=notify@example.com \
2022-11-11 21:43:50 +01:00
-e DB_USER=$PG_USER \
-e DB_PASS=$PG_PASS \
-e DB_NAME=$PG_NAME \
-e DB_HOST=$PG_HOST \
-e POSTGRES_HOST=$PG_HOST \
$REBASED_IMG