rebased-podman/30-run-rebased.sh

28 lines
725 B
Bash
Executable file

#!/bin/bash
source ./script_config.sh
echo Stopping old `rebased-web` container...
podman stop rebased-web
podman rm rebased-web
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 \
-v ./config:/var/lib/pleroma/config:z \
-v ./config.exs:/etc/pleroma/config.exs:ro \
-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