34 lines
793 B
YAML
34 lines
793 B
YAML
version: '3.8'
|
|
|
|
# Deploy with:
|
|
# docker stack deploy -c synapse.yml synapse
|
|
#
|
|
# Runs on: pve-social
|
|
# Matrix homeserver. Client/federation API on port 8008.
|
|
#
|
|
# First deploy generates /data/homeserver.yaml automatically.
|
|
# After first boot, update homeserver.yaml on pve-social to add PostgreSQL:
|
|
# database:
|
|
# name: psycopg2
|
|
# args:
|
|
# user: synapse_user
|
|
# password: <from pass homelab/SYNAPSE_DB_PASSWORD>
|
|
# database: synapse_db
|
|
# host: postgres_postgres
|
|
# cp_min: 5
|
|
# cp_max: 10
|
|
|
|
services:
|
|
synapse:
|
|
image: matrixdotorg/synapse:latest
|
|
environment:
|
|
SYNAPSE_SERVER_NAME: "matrix.the-fulfillment.org"
|
|
SYNAPSE_REPORT_STATS: "no"
|
|
ports:
|
|
- 8008: 8008
|
|
volumes:
|
|
- synapse_data:/data
|
|
|
|
volumes:
|
|
synapse_data:
|
|
|