Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
55806162
Commit
55806162
authored
6 years ago
by
Richard van der Hoff
Browse files
Options
Downloads
Patches
Plain Diff
Document the `generate` option for the docker image.
parent
06cbf79f
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
changelog.d/4824.misc
+1
-0
1 addition, 0 deletions
changelog.d/4824.misc
docker/README.md
+37
-4
37 additions, 4 deletions
docker/README.md
with
38 additions
and
4 deletions
changelog.d/4824.misc
0 → 100644
+
1
−
0
View file @
55806162
Document the `generate` option for the docker image.
This diff is collapsed.
Click to expand it.
docker/README.md
+
37
−
4
View file @
55806162
...
@@ -28,7 +28,7 @@ with your postgres database.
...
@@ -28,7 +28,7 @@ with your postgres database.
docker run \
docker run \
-d \
-d \
--name synapse \
--name synapse \
-
v ${DATA_PATH}:
/data \
-
-mount type=volume,src=synapse-data,dst=
/data \
-e SYNAPSE_SERVER_NAME=my.matrix.host \
-e SYNAPSE_SERVER_NAME=my.matrix.host \
-e SYNAPSE_REPORT_STATS=yes \
-e SYNAPSE_REPORT_STATS=yes \
matrixdotorg/synapse:latest
matrixdotorg/synapse:latest
...
@@ -87,10 +87,15 @@ Global settings:
...
@@ -87,10 +87,15 @@ Global settings:
*
``SYNAPSE_CONFIG_PATH``
, path to a custom config file
*
``SYNAPSE_CONFIG_PATH``
, path to a custom config file
If
``SYNAPSE_CONFIG_PATH``
is set, you should generate a configuration file
If
``SYNAPSE_CONFIG_PATH``
is set, you should generate a configuration file
then customize it manually. No other environment variable is required.
then customize it manually: see
[
Generating a config
file
](
#generating-a-config-file
)
.
Otherwise, a dynamic configuration file will be used. The following environment
Otherwise, a dynamic configuration file will be used.
variables are available for configuration:
### Environment variables used to build a dynamic configuration file
The following environment variables are used to build the configuration file
when
``SYNAPSE_CONFIG_PATH``
is not set.
*
``SYNAPSE_SERVER_NAME``
(mandatory), the server public hostname.
*
``SYNAPSE_SERVER_NAME``
(mandatory), the server public hostname.
*
``SYNAPSE_REPORT_STATS``
, (mandatory,
``yes``
or
``no``
), enable anonymous
*
``SYNAPSE_REPORT_STATS``
, (mandatory,
``yes``
or
``no``
), enable anonymous
...
@@ -143,3 +148,31 @@ Mail server specific values (will not send emails if not set):
...
@@ -143,3 +148,31 @@ Mail server specific values (will not send emails if not set):
any.
any.
*
``SYNAPSE_SMTP_PASSWORD``
, password for authenticating against the mail
*
``SYNAPSE_SMTP_PASSWORD``
, password for authenticating against the mail
server if any.
server if any.
### Generating a config file
It is possible to generate a basic configuration file for use with
`SYNAPSE_CONFIG_PATH`
using the
`generate`
commandline option. You will need to
specify values for
`SYNAPSE_CONFIG_PATH`
,
`SYNAPSE_SERVER_NAME`
and
`SYNAPSE_REPORT_STATS`
, and mount a docker volume to store the data on. For
example:
```
docker run -it --rm
--mount type=volume,src=synapse-data,dst=/data \
-e SYNAPSE_CONFIG_PATH=/data/homeserver.yaml \
-e SYNAPSE_SERVER_NAME=my.matrix.host \
-e SYNAPSE_REPORT_STATS=yes \
matrixdotorg/synapse:latest generate
```
This will generate a
`homeserver.yaml`
in (typically)
`/var/lib/docker/volumes/synapse-data/_data`
, which you can then customise and
use with:
```
docker run -d --name synapse \
--mount type=volume,src=synapse-data,dst=/data \
-e SYNAPSE_CONFIG_PATH=/data/homeserver.yaml \
matrixdotorg/synapse:latest
```
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment