29 lines
765 B
Bash
Executable file
29 lines
765 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 \
|
|
-v ./config:/var/lib/pleroma/config \
|
|
-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 \
|
|
-e DB_USER=rebased \
|
|
-e DB_PASS=rebased \
|
|
-e DB_NAME=rebased \
|
|
-e DB_HOST=localhost \
|
|
-e POSTGRES_HOST=localhost \
|
|
$REBASED_IMG
|
|
|
|
|