mirror of
https://akkoma.dev/AkkomaGang/akkoma.git
synced 2024-11-17 18:49:15 +00:00
fix setup
This commit is contained in:
parent
6ab2e960d7
commit
569851f14c
|
@ -21,10 +21,6 @@ services:
|
||||||
- type: bind
|
- type: bind
|
||||||
source: ./pgdata
|
source: ./pgdata
|
||||||
target: /var/lib/postgresql/data
|
target: /var/lib/postgresql/data
|
||||||
- type: bind
|
|
||||||
source: ./config
|
|
||||||
target: /docker-entrypoint-initdb.d
|
|
||||||
|
|
||||||
akkoma:
|
akkoma:
|
||||||
image: akkoma/akkoma:next
|
image: akkoma/akkoma:next
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
|
|
@ -10,4 +10,12 @@ docker compose run \
|
||||||
-e "PLEROMA_CTL_RPC_DISABLED=true" \
|
-e "PLEROMA_CTL_RPC_DISABLED=true" \
|
||||||
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
|
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
|
||||||
|
|
||||||
echo "Instance generated!"
|
echo "Instance generated!"
|
||||||
|
|
||||||
|
# setup database from generated config
|
||||||
|
# we run from the akkoma container to ensure we have the right environment! can't connect to a DB that doesn't exist yet...
|
||||||
|
docker compose run \
|
||||||
|
--rm \
|
||||||
|
-e "PLEROMA_CTL_RPC_DISABLED=true" \
|
||||||
|
-e "PGPASSWORD=akkoma" \
|
||||||
|
akkoma psql -h db -U akkoma -d akkoma -f /opt/akkoma/config/setup_db.psql
|
Loading…
Reference in a new issue