forked from element-hq/synapse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.prod.yml
More file actions
88 lines (81 loc) · 1.97 KB
/
docker-compose.prod.yml
File metadata and controls
88 lines (81 loc) · 1.97 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
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
version: '3.8'
services:
synapse:
image: matrixdotorg/synapse:latest
container_name: synapse
restart: unless-stopped
environment:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
- SYNAPSE_SERVER_NAME=${MATRIX_DOMAIN}
- SYNAPSE_REPORT_STATS=no
volumes:
- ./data:/data
- ./logs:/data/logs
depends_on:
- db
- redis
networks:
- synapse_network
healthcheck:
test: ["CMD", "curl", "-fSs", "http://localhost:8008/health"]
interval: 30s
timeout: 10s
retries: 3
db:
image: postgres:15-alpine
container_name: synapse_db
restart: unless-stopped
environment:
- POSTGRES_USER=synapse
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
- POSTGRES_DB=synapse
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes:
- postgres_data:/var/lib/postgresql/data
networks:
- synapse_network
redis:
image: redis:7-alpine
container_name: synapse_redis
restart: unless-stopped
volumes:
- redis_data:/data
networks:
- synapse_network
coturn:
image: coturn/coturn:latest
container_name: synapse_coturn
restart: unless-stopped
ports:
- "3478:3478/udp"
- "3478:3478/tcp"
- "5349:5349/udp"
- "5349:5349/tcp"
- "49152-65535:49152-65535/udp"
volumes:
- ./coturn/turnserver.conf:/etc/coturn/turnserver.conf:ro
- ./ssl:/etc/ssl/coturn:ro
networks:
- synapse_network
nginx:
image: nginx:alpine
container_name: synapse_nginx
restart: unless-stopped
ports:
- "80:80"
- "443:443"
volumes:
- ./nginx/nginx.conf:/etc/nginx/nginx.conf:ro
- ./nginx/sites-available:/etc/nginx/sites-available:ro
- ./ssl:/etc/nginx/ssl:ro
- /var/log/nginx:/var/log/nginx
depends_on:
- synapse
networks:
- synapse_network
volumes:
postgres_data:
redis_data:
networks:
synapse_network:
driver: bridge