forked from wkelton/matrix-docker-compose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
103 lines (94 loc) · 2.48 KB
/
docker-compose.yml
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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
version: "3.4"
services:
postgres:
image: postgres:${POSTGRES_VERSION}
container_name: matrix-db
restart: unless-stopped
user: "${POSTGRES_USER}:${POSTGRES_GROUP}"
ports:
- "5432:5432"
volumes:
- db_data:/var/lib/postgresql/data
env_file: postgres.env
networks:
- local
depends_on:
- postgres_volume_provisioner
labels:
- diun.enable=true
synapse:
image: avhost/docker-matrix:${SYNAPSE_VERSION}
container_name: matrix-synapse
restart: unless-stopped
user: "${SYNAPSE_USER}:${SYNAPSE_GROUP}"
expose:
- 8008
ports:
- "3478:3478"
- "49152-49254:49152-49254"
- "49152-49254:49152-49254/udp"
volumes:
- synapse_data:/data
env_file: synapse.env
networks:
- local
- default
depends_on:
- postgres
- synapse_volume_provisioner
labels:
- diun.enable=true
synapse_admin:
image: awesometechnologies/synapse-admin
container_name: matrix-synapse-admin
restart: unless-stopped
env_file: synapse_admin.env
networks:
- default
depends_on:
- synapse
labels:
- diun.enable=true
riot:
image: vectorim/element-web:${ELEMENT_VERSION}
container_name: matrix-riot
restart: unless-stopped
#user: "${RIOT_USER}:${RIOT_GROUP}" # The docker image does not support running as non-root.
volumes:
# The docker image is built in a way where we can use a named volume to mount /app
# We probably need to create our own image.
- ./config/config.json:/app/config.json:ro
env_file: element.env
networks:
- default
depends_on:
- synapse
labels:
- diun.enable=true
postgres_volume_provisioner:
image: hasnat/volumes-provisioner
container_name: matrix-postgres-volume-provisioner
restart: "no"
volumes:
- db_data:/var/lib/postgresql/data
environment:
PROVISION_DIRECTORIES: "${POSTGRES_USER}:${POSTGRES_GROUP}:0700:/var/lib/postgresql/data"
network_mode: none
synapse_volume_provisioner:
image: hasnat/volumes-provisioner
container_name: matrix-synapse-volume-provisioner
restart: "no"
entrypoint: /bin/sh -c "/entrypoint.sh ; touch /data/volume_initialized"
volumes:
- synapse_data:/data
environment:
PROVISION_DIRECTORIES: "${SYNAPSE_USER}:${SYNAPSE_GROUP}:0700:/data"
network_mode: none
volumes:
db_data:
synapse_data:
networks:
local:
default:
external:
name: webproxy