adding docker-compose related files/configs

This commit is contained in:
jp 2020-05-26 16:18:06 -04:00
parent 4bdfe18bfd
commit 95653e20d0
13 changed files with 46 additions and 0 deletions

View File

View File

@ -0,0 +1 @@
listen_addresses = '127.0.0.1'

View File

34
docker-compose.yml Normal file
View File

@ -0,0 +1,34 @@
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

View File

View File

@ -0,0 +1,2 @@
POSTGRES_PASSWORD=pleroma
POSTGRES_USER=pleroma

View File

View File

@ -0,0 +1,9 @@
DB_USER=pleroma
DB_PASS=pleroma
DB_HOST=pleroma-db
DB_NAME=pleroma
INSTANCE_NAME=Pleroma
ADMIN_EMAIL=admin@ops.pleroma.social
NOTIFY_EMAIL=pleroma+admin@ops.pleroma.social
DOMAIN=ops.pleroma.social
PORT=4000

View File

View File

View File

0
volumes/pleroma/.gitkeep Normal file
View File

View File