2022-11-11 16:08:42 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source ./script_config.sh
|
2022-11-11 21:09:51 +01:00
|
|
|
touch ./config/prod.secret.exs
|
2022-11-11 16:08:42 +01:00
|
|
|
|
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 \
|
2022-11-14 15:25:40 +01:00
|
|
|
-e DB_USER=$PG_USER \
|
|
|
|
-e DB_PASS=$PG_PASS \
|
|
|
|
-e DB_NAME=$PG_NAME \
|
|
|
|
-e DB_HOST=$PG_HOST \
|
2022-11-11 16:08:42 +01:00
|
|
|
-v ./uploads:/var/lib/pleroma/uploads:z \
|
|
|
|
-v ./static:/var/lib/pleroma/static:z \
|
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
|
|
|
$REBASED_IMG
|
|
|
|
|
|
|
|
|