add pleroma-docker-compose.yaml

example pleroma docker-compose for simple setup
master
JoYo 2020-04-01 19:26:53 +00:00
parent 4022357d55
commit 1b1e2b2f3d
1 changed files with 31 additions and 0 deletions

View File

@ -0,0 +1,31 @@
version: '3'
volumes:
pleroma_db:
services:
pleroma_db:
image: postgres:11
restart: always
environment:
POSTGRES_USER: pleroma
POSTGRES_DB: pleroma
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- pleroma_db:/var/lib/postgresql/data
pleroma_web:
image: git.pleroma.social:5050/pleroma/pleroma
restart: always
ports:
- "4000:4000"
environment:
DB_HOST: pleroma_db
DB_USER: pleroma
DB_NAME: pleroma
depends_on:
- pleroma_db
volumes:
- ./uploads:/var/lib/pleroma/uploads
- ./static:/var/lib/pleroma/static
- ./config:/etc/pleroma