27 lines
661 B
Bash
Executable file
27 lines
661 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:/config:rw \
|
|
-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
|
|
|
|
|