-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yaml
45 lines (44 loc) · 1.46 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
version: '3'
services:
pulse:
image: treethought/matrix-pulsesms
build:
context: .
depends_on:
- synapse
volumes:
- ./bridge_data:/data # bridge yaml config
- ./synapse_files:/synapse_files # need to generate registration into synapse config
ports:
- 29318:29318
synapse:
image: docker.io/matrixdotorg/synapse:latest
# 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_CONFIG_PATH=/data/homeserver.yaml
- SYNAPSE_SERVER_NAME=localhost
- SYNAPSE_REPORT_STATS=no
volumes:
# You may either store all the files in a local folder
- ./synapse_files:/data
depends_on:
- db
ports:
- 8008:8008
db:
image: docker.io/postgres:12-alpine
# Change that password, of course!
environment:
- POSTGRES_USER=synapse
- POSTGRES_PASSWORD=changeme
# ensure the database gets created correctly
# https://github.com/matrix-org/synapse/blob/master/docs/postgres.md#set-up-database
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
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