2022-11-11 16:08:42 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source ./script_config.sh
|
|
|
|
|
2022-11-11 16:31:47 +01:00
|
|
|
echo Stopping old 'rebased-web' container...
|
2022-11-11 16:08:42 +01:00
|
|
|
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 16:08:42 +01:00
|
|
|
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 \
|
2022-11-11 16:08:42 +01:00
|
|
|
-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
|
|
|
|
|
|
|
|
|