No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
drymer 897762774a
[pleroma] Update version
3 months ago
..
Dockerfile [pleroma] Update version 3 months ago
README.md [pleroma] [SKIP CI] Add instructions to test it 1 year ago

README.md

Pleroma

Forked from Angristan. It uses the develop branch since pleroma doesn’t have a release system yet.

Production use

In first use, execute:

docker run -ti registry.daemons.it/pleroma sh
unset MIX_ENV
mix generate_config

The last order will ask some questions. Ask them and it will create a file called /pleroma/config/generated_config.exs. Copy it locally, modify it and in the next run, mount it:

docker run -ti -v $PATH_TO_FILE/pleroma.secret.exs:/pleroma/config/prod.secret.exs registry.daemons.it/pleroma

Testing use

To test in in a non production environment, you may use this prod.secret.exs file:

use Mix.Config

config :pleroma, Pleroma.Web.Endpoint,
   url: [host: "localhost", scheme: "https", port: 443],
   secret_key_base: "5iqUT1buQk+120310230s00200s0as0d02020101"

config :pleroma, :instance,
  name: "Localhost",
  email: "nope@nope.com",
  limit: 5000,
  registrations_open: true,
  dedupe_media: false

# Configure your database
config :pleroma, Pleroma.Repo,
  adapter: Ecto.Adapters.Postgres,
  username: "pleroma",
  password: "pleroma",
  database: "pleroma",
  hostname: "postgres",
  pool_size: 10

Copy the previous file in /tmp/pleroma.secret.exs and execute:

docker network create -d bridge pleroma
docker run --name postgres --rm -d -e POSTGRES_PASSWORD="pleroma" -e POSTGRES_USER=pleroma -e POSTGRES_DB=pleroma --net pleroma "postgres:9.6"
docker run --name pleroma --rm -d -v /tmp/pleroma.secret.exs:/pleroma/config/prod.secret.exs -p 4000:4000 --net pleroma registry.daemons.it/pleroma

It will take like a minute to pleroma to start. To clean when finished:

docker stop postgres
docker stop pleroma
docker network rm pleroma