bootstrap
This commit is contained in:
parent
f46cd1ee60
commit
3a1f322cd5
10 changed files with 358 additions and 110 deletions
|
|
@ -1,48 +0,0 @@
|
|||
version: '3'
|
||||
|
||||
services:
|
||||
# matrix_synapse_version: "v1.5.1-py3"
|
||||
# matrix_synapse_version: "v1.5.1"
|
||||
|
||||
|
||||
#matrix_synapse_pg_host: synapse-postgres
|
||||
|
||||
synapse:
|
||||
# build:
|
||||
# context: ../..
|
||||
# dockerfile: docker/Dockerfile
|
||||
image: "matrixdotorg/synapse:{{ matrix_synapse_version }}"
|
||||
# Since synapse does not retry to connect to the database, restart upon
|
||||
# failure
|
||||
restart: unless-stopped
|
||||
# See the readme for a full documentation of the environment settings
|
||||
environment:
|
||||
- SYNAPSE_REPORT_STATS={{ matrix_synapse_report_stats }}
|
||||
- SYNAPSE_CONFIG_PATH={{ matrix_synapse_config_docker_path }}
|
||||
volumes:
|
||||
# You may either store all the files in a local folder
|
||||
- {{ matrix_synapse_config_dir }}:{{ matrix_synapse_config_docker_dir }}
|
||||
- ./files:/data
|
||||
# .. or you may split this between different storage points
|
||||
# - ./files:/data
|
||||
# - /path/to/ssd:/data/uploads
|
||||
# - /path/to/large_hdd:/data/media
|
||||
depends_on:
|
||||
- db
|
||||
# In order to expose Synapse, remove one of the following, you might for
|
||||
# instance expose the TLS port directly:
|
||||
ports:
|
||||
- 8008:8008/tcp
|
||||
# labels:
|
||||
|
||||
db:
|
||||
image: docker.io/postgres:10-alpine
|
||||
# Change that password, of course!
|
||||
environment:
|
||||
- POSTGRES_USER={{ matrix_synapse_db_name }}
|
||||
- POSTGRES_PASSWORD={{ matrix_synapse_pg_pass }}
|
||||
volumes:
|
||||
# You may store the database tables in a local folder..
|
||||
- ./schemas:/var/lib/postgresql/data
|
||||
# .. or store them on some high performance storage for better results
|
||||
# - /path/to/ssd/storage:/var/lib/postgresql/data
|
||||
|
|
@ -1,5 +1,7 @@
|
|||
## Server ##
|
||||
|
||||
|
||||
report_stats: {{ matrix_synapse_report_stats }}
|
||||
# The domain name of the server, with optional explicit port.
|
||||
# This is used by remote servers to connect to this server,
|
||||
# e.g. matrix.org, localhost:8080, etc.
|
||||
|
|
@ -385,7 +387,7 @@ log_config: "/etc/matrix-synapse/log.yaml"
|
|||
|
||||
# Directory where uploaded images and attachments are stored.
|
||||
#
|
||||
media_store_path: "/var/lib/matrix-synapse/media"
|
||||
media_store_path: "{{ matrix_synapse_destination_media_store_path }}"
|
||||
|
||||
# Media storage providers allow media to be stored in different
|
||||
# locations.
|
||||
|
|
@ -404,7 +406,7 @@ media_store_path: "/var/lib/matrix-synapse/media"
|
|||
|
||||
# Directory where in-progress uploads are stored.
|
||||
#
|
||||
uploads_path: "/var/lib/matrix-synapse/uploads"
|
||||
uploads_path: "{{ matrix_synapse_destination_uploads_path }}"
|
||||
|
||||
# The largest allowed upload size in bytes
|
||||
#
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue