README.md 1.3KB

0xj9/pleroma

minbase 0.7 pleroma

make a docker-compose.yml file

# docker-compose.yml
version: "3"
services:
  pleroma:
    image: 0xj9/pleroma
    env_file: pleroma.env
    volumes:
      - uploads:/srv/pleroma/uploads
  postgres:
    image: postgres:10-alpine
volumes:
  uploads:
    driver: local

write down some important variables

HOST=
INSTANCE_LIMIT=
INSTANCE_NAME=
POSTGRES_DB=
POSTGRES_HOST=
POSTGRES_PASSWORD=
POSTGRES_USER=
REGISTRATIONS_OPEN=
SECRET_KEY_BASE=

execute some sql

CREATE USER pleroma WITH ENCRYPTED PASSWORD '<%= dbpass %>' CREATEDB;
CREATE DATABASE pleroma_dev;
ALTER DATABASE pleroma_dev OWNER TO pleroma;
\c pleroma_dev;
--Extensions made by ecto.migrate that need superuser access
CREATE EXTENSION IF NOT EXISTS citext;
CREATE EXTENSION IF NOT EXISTS pg_trgm;

fix permissions

docker-compose exec pleroma chown -R pleroma:pleroma /srv/pleroma/uploads