2024-06-01 02:11:02 -06:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
set -euo pipefail
|
|
|
|
|
|
|
|
mkdir -p pgdata
|
|
|
|
|
|
|
|
# This is sorta special in that we need the generated_config.exs to make it onto the host
|
|
|
|
docker compose run \
|
|
|
|
--rm \
|
|
|
|
-e "PLEROMA_CTL_RPC_DISABLED=true" \
|
2024-06-01 03:52:19 -06:00
|
|
|
akkoma ./bin/pleroma_ctl instance gen --no-sql-user --no-db-creation --dbhost db --dbname akkoma --dbuser akkoma --dbpass akkoma --listen-ip 0.0.0.0 --listen-port 4000 --static-dir /opt/akkoma/instance/ --uploads-dir /opt/akkoma/uploads/ --db-configurable true --output /opt/akkoma/config/generated_config.exs --output-psql /opt/akkoma/config/setup_db.psql
|
2024-06-01 02:11:02 -06:00
|
|
|
|
2024-06-04 03:21:13 -06:00
|
|
|
echo "Instance generated!"
|