OTP Release Pleroma, Containerized
Inspired by angristan/docker-pleroma
- Based on a slightly modified version of this guide
- Ran as an unprivileged user
- It works great (probably)
The image will need to be built by yourself.
config.exs
runs into permission problems when bind mounted. Thus, the Dockerfile directly copies the file to solve this.
- Copy
config.exs.example
anddocker-compose.yml.example
cp config.exs.example config.exs cp docker-compose.yml.example docker-compose.yml
- Modify
config.exs
anddocker-compose.yml
accordingly- Hint, you can generate the database password using
cat /dev/urandom | base64 | head -c 64
- Hint, you can generate the database password using
- Build
docker compose build # or docker build -t pleroma .
- Run
docker compose up -d
docker build -t pleroma .
docker-compose run --rm web mix ecto.migrate # migrate the database if needed
docker-compose up -d # recreate the containers if needed