A Docker image for Pleroma
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.
 
 
 
Raoul Snyman a785e9eff5 Initial commit 3 months ago
.gitignore Initial commit 3 months ago
Dockerfile Initial commit 3 months ago
README.rst Initial commit 3 months ago
config.dist.exs Initial commit 3 months ago
docker-compose.yaml Initial commit 3 months ago
docker-entrypoint.sh Initial commit 3 months ago
example.env Initial commit 3 months ago

README.rst

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