68 lines
1.7 KiB
ReStructuredText
68 lines
1.7 KiB
ReStructuredText
|
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
|
||
|
~~~~
|
||
|
|
||
|
.. code-block:: shell
|
||
|
|
||
|
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
|
||
|
~~~~~~~~~~~~~~~~~~~
|
||
|
|
||
|
.. code-block:: 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
|