pleroma-docker-compose/docker-compose.yml

35 lines
951 B
YAML

version: '3.1'
services:
pleroma:
image: git.pleroma.social:5050/pleroma/pleroma:latest
container_name: "pleroma"
hostname: "pleroma"
labels:
- "org.label-schema.group=pleroma"
restart: always
env_file: ./environments/pleroma/pleroma.env
depends_on:
- pleroma-db
ports:
- "127.0.0.1:4000:4000"
volumes:
- ./volumes/pleroma/config.exs:/var/lib/pleroma/config.exs
- ./volumes/pleroma/uploads:/var/lib/pleroma/uploads
pleroma-db:
image: postgres:12.1-alpine
container_name: "pleroma-db"
hostname: "pleroma-db"
labels:
- "com.centurylinklabs.watchtower.enable=False"
- "org.label-schema.group=pleroma"
restart: always
env_file: ./environments/pleroma-db/postgres.env
ports:
- "127.0.0.1:5432:5432"
volumes:
- ./volumes/pleroma-db/pgdata:/var/lib/postgresql/data
- ./volumes/pleroma-db/pginit:/docker-entrypoint-initdb.d