Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:synapse [2024/06/04 09:06] – willy | services:synapse [Unknown date] (current) – removed - external edit (Unknown date) 127.0.0.1 | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | useradd -d / | ||
- | mkdir / | ||
- | chown synapse: | ||
- | su - synapse | ||
- | mkdir / | ||
- | mkdir / | ||
- | |||
- | |||
- | <file - docker-composer.yml> | ||
- | |||
- | </ | ||
- | |||
- | <code bash> | ||
- | podman compose pull | ||
- | podman compose run --rm -e SYNAPSE_SERVER_NAME=chat.mydomain.com -e SYNAPSE_REPORT_STATS=yes synapse generate | ||
- | </ | ||
- | |||
- | Edit your **/ | ||
- | <file - docker-compose.yml> | ||
- | version: ' | ||
- | services: | ||
- | synapse: | ||
- | image: docker.io/ | ||
- | restart: unless-stopped | ||
- | environment: | ||
- | - SYNAPSE_CONFIG_PATH=/ | ||
- | volumes: | ||
- | - / | ||
- | depends_on: | ||
- | - db | ||
- | ports: | ||
- | - 8008: | ||
- | networks: | ||
- | - synapse-net | ||
- | |||
- | db: | ||
- | image: docker.io/ | ||
- | environment: | ||
- | - POSTGRES_USER=synapse | ||
- | - POSTGRES_PASSWORD=< | ||
- | - POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C | ||
- | volumes: | ||
- | - / | ||
- | networks: | ||
- | - synapse-net | ||
- | |||
- | networks: | ||
- | synapse-net: | ||
- | </ | ||
- | |||
- | Generate initial configuration file: | ||
- | <code bash> | ||
- | podman compose run --rm -e SYNAPSE_SERVER_NAME=chat.mydomain.com -e SYNAPSE_REPORT_STATS=yes synapse generate | ||
- | </ | ||
- | |||
- | Edit the config file: | ||
- | <file - homeserver.yaml> | ||
- | server_name: | ||
- | pid_file: / | ||
- | # NOTE: enable the following two lines ONLY to create users, then REMOVE them! | ||
- | # | ||
- | # | ||
- | listeners: | ||
- | - port: 8008 | ||
- | tls: false | ||
- | type: http | ||
- | x_forwarded: | ||
- | resources: | ||
- | - names: [client, federation] | ||
- | compress: false | ||
- | database: | ||
- | name: psycopg2 | ||
- | args: | ||
- | user: synapse | ||
- | password: < my db password > | ||
- | dbname: synapse | ||
- | host: db | ||
- | cp_min: 5 | ||
- | cp_max: 10 | ||
- | log_config: "/ | ||
- | media_store_path: | ||
- | registration_shared_secret: | ||
- | report_stats: | ||
- | macaroon_secret_key: | ||
- | form_secret: | ||
- | signing_key_path: | ||
- | trusted_key_servers: | ||
- | - server_name: | ||
- | </ | ||
- | |||
- | To create users: | ||
- | <code bash> | ||
- | podman compose run --entrypoint / | ||
- | </ | ||