16 lines
773 B
Bash
Executable file
16 lines
773 B
Bash
Executable file
#!/bin/sh
|
|
#
|
|
# setup pleroma db
|
|
|
|
docker-compose up -d pleroma_db
|
|
docker-compose up -d pleroma2_db
|
|
sleep 10
|
|
docker-compose exec -i pleroma_db psql -U pleroma -c "CREATE EXTENSION IF NOT EXISTS citext;"
|
|
docker-compose exec -i pleroma_db psql -U pleroma -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
|
docker-compose exec -i pleroma_db psql -U pleroma -c 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";'
|
|
docker-compose exec -i pleroma2_db psql -U pleroma -c "CREATE EXTENSION IF NOT EXISTS citext;"
|
|
docker-compose exec -i pleroma2_db psql -U pleroma -c "CREATE EXTENSION IF NOT EXISTS pg_trgm;"
|
|
docker-compose exec -i pleroma2_db psql -U pleroma -c 'CREATE EXTENSION IF NOT EXISTS "uuid-ossp";'
|
|
docker-compose down
|
|
|
|
docker buildx build -t pleroma_selfbuilt -f ./Dockerfile.pleroma .
|