-
Notifications
You must be signed in to change notification settings - Fork 86
/
Copy pathdocker-compose.yml
48 lines (41 loc) · 1.23 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
version: '3'
services:
synapse:
image: matrixdotorg/synapse:latest
restart: unless-stopped
container_name: synapse
environment:
- SYNAPSE_LOG_LEVEL=INFO
volumes:
- ./matrix-data:/data
labels:
- "traefik.enable=true"
- "traefik.http.routers.synapse.rule=Host(`${TRAEFIK_MATRIX}`)"
- "traefik.http.routers.synapse.entrypoints=https"
- "traefik.http.routers.synapse.tls=true"
- "traefik.http.routers.synapse.tls.certresolver=mydnschallenge"
# Watchtower Update
- "com.centurylinklabs.watchtower.enable=true"
networks:
- proxy
element:
image: vectorim/element-web:latest
restart: unless-stopped
container_name: element
depends_on:
- synapse
volumes:
- ./element-web/config.json:/app/config.json:ro
labels:
- "traefik.enable=true"
- "traefik.http.routers.element.rule=Host(`${TRAEFIK_ELEMENT}`)"
- "traefik.http.routers.element.entrypoints=https"
- "traefik.http.routers.element.tls=true"
- "traefik.http.routers.element.tls.certresolver=mydnschallenge"
# Watchtower Update
- "com.centurylinklabs.watchtower.enable=true"
networks:
- proxy
networks:
proxy:
external: true