-
Notifications
You must be signed in to change notification settings - Fork 1
/
docker-compose.yml
59 lines (54 loc) · 1.27 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
version: "3"
services:
synapse:
image: matrixdotorg/synapse:latest
volumes:
- ./synapse:/data
- ./coturn:/data/matrix/coturn
- ./certs/:/etc/letsencrypt
environment:
VIRTUAL_HOST: ${HOSTNAME}
VIRTUAL_PORT: 8008
LETSENCRYPT_HOST: ${HOSTNAME}
SYNAPSE_SERVER_NAME: ${HOSTNAME}
SYNAPSE_REPORT_STATS: "false"
UID: 0
GID: 0
links:
- "database:database"
depends_on:
- database
env_file:
- .env
database:
image: postgres:14
environment:
POSTGRES_DB: synapse
POSTGRES_USER: ${POSTGRES_USER}
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes:
- postgres-data:/var/lib/postgresql/data
- ./utils/init.sql:/docker-entrypoint-initdb.d/init.sql
env_file:
- .env
reverse-proxy:
image: nginx:latest
restart: unless-stopped
ports:
- 80:80
- 443:443
- 8448:8448
volumes:
- ./nginx/nginx.conf:/etc/nginx/conf.d/nginx.conf
- ./certs/:/etc/letsencrypt
coturn:
image: instrumentisto/coturn:latest
restart: unless-stopped
volumes:
- ./coturn/turnserver.conf:/etc/coturn/turnserver.conf
ports:
- 3478:3478
- 5349:5349
- 49160-49200:49160-49200/udp
volumes:
postgres-data: {}