A Docker image for Pleroma
Go to file
2022-12-09 09:32:23 -07:00
.gitignore Initial commit 2022-12-09 09:32:23 -07:00
config.dist.exs Initial commit 2022-12-09 09:32:23 -07:00
docker-compose.yaml Initial commit 2022-12-09 09:32:23 -07:00
docker-entrypoint.sh Initial commit 2022-12-09 09:32:23 -07:00
Dockerfile Initial commit 2022-12-09 09:32:23 -07:00
example.env Initial commit 2022-12-09 09:32:23 -07:00
README.rst Initial commit 2022-12-09 09:32:23 -07:00

Docker image of Pleroma

This is a Pleroma image that I created for myself. Feel free to use it if you wish.

This image will create the configuration for Pleroma, and then migrate the configuration to the database.

Set Up

You'll need an environment file and a Compose file.

.env

POSTGRES_HOST=postgres
POSTGRES_USER=pleroma
POSTGRES_PASSWORD=pleroma
POSTGRES_DB=pleroma
DOMAIN=pleroma.yourdomain.com
PORT=443
SCHEME=https
INSTANCE_NAME=Pleroma
ADMIN_EMAIL=admin@yourdomain.com
NOTIFY_EMAIL=notify@yourdomain.com

docker-compose.yaml

version: '3'
services:
  postgres:
    image: postgres:14
    environment:
      - POSTGRES_USER=${POSTGRES_USER:-pleroma}
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
      - POSTGRES_DB=${POSTGRES_DB:-pleroma}
    restart: unless-stopped
    volumes:
      - "./data/postgres:/var/lib/postgresql"
  pleroma:
    image: raoulsnyman/pleroma:latest
    environment:
      - POSTGRES_HOST=${POSTGRES_HOST:-postgres}
      - POSTGRES_USER=${POSTGRES_USER:-pleroma}
      - POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
      - POSTGRES_DB=${POSTGRES_DB:-pleroma}
      - DOMAIN=${DOMAIN:-localhost}
      - SCHEME=${SCHEME:-http}
      - PORT=${PORT:-8001}
      - ADMIN_EMAIL=${ADMIN_EMAIL:-info@example.com}
      - NOTIFY_EMAIL=${NOTIFY_EMAIL:-info@example.com}
      - INSTANCE_NAME=${INSTANCE_NAME:-Pleroma}
    restart: unless-stopped
    volumes:
      - "./data/config:/config"
      - "./data/static:/static"
      - "./data/uploads:/uploads"
    ports:
      - "127.0.0.1:8001:4000"
    depends_on:
      - postgres