adding docker-compose related files/configs
This commit is contained in:
parent
4bdfe18bfd
commit
95653e20d0
|
@ -0,0 +1 @@
|
|||
listen_addresses = '127.0.0.1'
|
|
@ -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
|
||||
|
|
@ -0,0 +1,2 @@
|
|||
POSTGRES_PASSWORD=pleroma
|
||||
POSTGRES_USER=pleroma
|
|
@ -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
|
Loading…
Reference in New Issue