Floatingghost
4450f7463b
Some checks failed
ci/woodpecker/push/lint Pipeline is pending
ci/woodpecker/push/test unknown status
ci/woodpecker/push/build-arm64 unknown status
ci/woodpecker/push/build-amd64 unknown status
ci/woodpecker/push/docs unknown status
ci/woodpecker/push/build-docker Pipeline failed
28 lines
861 B
Bash
Executable file
28 lines
861 B
Bash
Executable file
#!/bin/bash
|
|
|
|
set -euo pipefail
|
|
|
|
mkdir -p pgdata
|
|
mkdir -p docker-setup-tmp
|
|
|
|
# This is sorta special in that we need the generated_config.exs to make it onto the host
|
|
# We can also automate the DB setup here!
|
|
docker compose run \
|
|
--rm \
|
|
-e "PLEROMA_CTL_RPC_DISABLED=true" \
|
|
-v ./docker-setup-tmp:/opt/akkoma/config/\
|
|
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
|
|
|
|
echo ""
|
|
echo "=========================="
|
|
echo ""
|
|
echo "Setting up your database!"
|
|
|
|
docker compose start db
|
|
|
|
docker compose run \
|
|
--rm \
|
|
-e "PGPASSWORD=akkoma" \
|
|
-v "$(pwd)/docker-setup-tmp/setup_db.psql:/docker-entrypoint-initdb.d/setup_db.sql" \
|
|
db
|
|
|