-
Notifications
You must be signed in to change notification settings - Fork 163
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
50 lines (47 loc) · 1.5 KB
/
docker-compose.yml
File metadata and controls
50 lines (47 loc) · 1.5 KB
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
46
47
48
49
50
services:
synapse-admin:
container_name: synapse-admin
hostname: synapse-admin
# Use a prebuilt image:
#image: awesometechnologies/synapse-admin:latest
# or build from source:
build:
context: .
# to use the docker-compose as standalone without a local repo clone,
# replace the context definition with this:
# context: https://github.com/Awesome-Technologies/synapse-admin.git
# args:
# - BUILDKIT_CONTEXT_KEEP_GIT_DIR=1
# if you're building on an architecture other than amd64, make sure
# to define a maximum ram for node. otherwise the build will fail.
# - NODE_OPTIONS="--max_old_space_size=1024"
# - BASE_PATH="/synapse-admin"
depends_on:
synapse:
condition: service_healthy
ports:
- "8080:80"
restart: unless-stopped
healthcheck:
test: ["CMD-SHELL", "wget -qO- http://127.0.0.1/config.json >/dev/null 2>&1 || exit 1"]
interval: 5s
timeout: 5s
synapse:
image: matrixdotorg/synapse:v1.141.0
environment:
SYNAPSE_CONFIG_PATH: /data/homeserver.yaml
SYNAPSE_REPORT_STATS: "no"
SYNAPSE_SERVER_NAME: localhost
ports:
- "8008:8008"
volumes:
- ${SYNAPSE_DATA_DIR:-/tmp/synapse}:/data
restart: unless-stopped
healthcheck:
test:
[
"CMD-SHELL",
"python -c \"import urllib.request; urllib.request.urlopen('http://127.0.0.1:8008/_matrix/client/versions', timeout=5)\"",
]
interval: 5s
timeout: 5s