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: # database: synapse_db # host: postgres_postgres # cp_min: 5 # cp_max: 10 services: synapse: image: matrixdotorg/synapse:latest environment: SYNAPSE_SERVER_NAME: pve-social SYNAPSE_REPORT_STATS: "no" ports: - 8008: 8008 volumes: - synapse_data:/data volumes: synapse_data: