-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
63 lines (58 loc) · 1.31 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
version: '3'
services:
nginx:
image: nginx:latest
restart: unless-stopped
volumes:
- ./nginx.conf:/etc/nginx/nginx.conf
- ./certs:/etc/letsencrypt
- ./certs-data:/data/letsencrypt
ports:
- 80:80
- 443:443
depends_on:
- synapse
networks:
- webproxy
riotweb:
image: bubuntux/riot-web:latest
hostname: riotweb
restart: unless-stopped
volumes:
- ./config.json:/etc/riot-web/config.json:ro
networks:
- webproxy
synapse:
image: docker.io/matrixdotorg/synapse:latest
hostname: synapse
restart: unless-stopped
environment:
- SYNAPSE_SERVER_NAME=${FQDN}
- SYNAPSE_REPORT_STATS=no
- SYNAPSE_ENABLE_REGISTRATION=yes
- SYNAPSE_LOG_LEVEL=INFO
- POSTGRES_DB=postgres
- POSTGRES_USER=matrix
- POSTGRES_PASSWORD=${POSTRES_PASSWORD}
- SYNAPSE_NO_TLS=1
- SYNAPSE_MAX_UPLOAD_SIZE=100M
volumes:
- ./files:/data
depends_on:
- db
networks:
- webproxy
db:
image: docker.io/postgres:10-alpine
restart: unless-stopped
ports:
- 5432:5432
environment:
- POSTGRES_USER=matrix
- POSTGRES_PASSWORD=${POSTGRES_PASSWORD}
volumes:
- ./schemas:/var/lib/postgresql/data
networks:
- webproxy
networks:
webproxy: