rebased-podman/30-run-rebased.sh

29 lines
703 B
Bash
Raw Normal View History

#!/bin/bash
source ./script_config.sh
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...
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 \
-e DOMAIN=social.example.com \
-e INSTANCE_NAME=rebased \
-e ADMIN_EMAIL=admin@example.com \
-e NOTIFY_EMAIL=notify@example.com \
-e DB_USER=rebased \
-e DB_PASS=rebased \
-e DB_NAME=rebased \
-e DB_HOST=localhost \
-e POSTGRES_HOST=localhost \
$REBASED_IMG