This repository has been archived by the owner on Feb 17, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
184 lines (171 loc) · 5.62 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
networks:
default:
enable_ipv6: true
web:
external: true
services:
postgres:
image: postgres:14.11-alpine@sha256:4d3d45051b91b6573a0d8fdcfb19702aa83a607a47526c62cf2e29ec92bc0218
restart: always
# These will be used in homeserver.yaml later on
environment:
- POSTGRES_DB=synapse
- POSTGRES_USER=synapse
- POSTGRES_PASSWORD
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes:
- /home/aosus/matrix/postgresql:/var/lib/postgresql/data:rw
networks:
default:
synapse:
image: ghcr.io/element-hq/synapse:v1.101.0@sha256:903f67722ff9577bbd6bab2f2c51716d1e3ed76683b1f7f4734eb4cb1fb8000b
container_name: synapse
restart: always
volumes:
- /home/aosus/matrix/media_store:/data/media_store:rw
environment:
- UID=991
- GID=991
- SYNAPSE_CONFIG_DIR=config
configs:
- source: synapse-homeserver
target: /config/homeserver.yaml
uid: "991"
gid: "991"
- source: synapse-log-config
target: /config/log.config
uid: "991"
gid: "991"
- source: mautrix-telegram-appservice
target: /app-services/telegram.yaml
uid: "991"
gid: "991"
- source: mautrix-discord-appservice
target: /app-services/discord.yaml
uid: "991"
gid: "991"
secrets:
- source: matrix-signing-key
target: signing.key
uid: "991"
gid: "991"
healthcheck:
test: [ "CMD", "curl", "-fSs", "http://localhost:8008/health" ]
interval: 15s
timeout: 5s
retries: 3
start_period: 5s
networks:
default:
web:
synapse-admin:
container_name: synapse-admin
image: awesometechnologies/synapse-admin:latest@sha256:fad10167ead60d9a81df149d4accfd4d0e4c0d1c06bbd6bdf862160c1db36065
ports:
- "100.68.206.74:8080:80"
restart: unless-stopped
mautrix-telegram:
container_name: mautrix-telegram
restart: always
image: dock.mau.dev/mautrix/telegram:v0.15.1@sha256:2091e446ac660be59427c89eea961f1355238ec41d814aa1db12dfb7a1a6dc6c
configs:
- source: mautrix-telegram-appservice
target: /data/registration.yaml
- source: mautrix-telegram-config
target: /data/config.yaml
networks:
default:
postgres-telegram:
image: postgres:14.11-alpine@sha256:4d3d45051b91b6573a0d8fdcfb19702aa83a607a47526c62cf2e29ec92bc0218
restart: always
environment:
- POSTGRES_DB=telegram
- POSTGRES_USER=telegram
- POSTGRES_PASSWORD=${MATRIX_TELEGRAM_POSTGRES_PASSWORD}
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes:
- /home/aosus/matrix/telegram/postgresql:/var/lib/postgresql/data:rw
networks:
default:
mautrix-discord:
container_name: mautrix-discord
restart: always
image: dock.mau.dev/mautrix/discord:latest@sha256:ca9119f6a2d50100d9efd6ce665b969be1fa5ea6898c15b9a3383ad1717ac0aa
configs:
- source: mautrix-discord-appservice
target: /data/registration.yaml
- source: mautrix-discord-config
target: /data/config.yaml
postgres-discord:
image: postgres:14.11-alpine@sha256:4d3d45051b91b6573a0d8fdcfb19702aa83a607a47526c62cf2e29ec92bc0218
restart: always
environment:
- POSTGRES_DB=discord
- POSTGRES_USER=discord
- POSTGRES_PASSWORD=${MATRIX_DISCORD_POSTGRES_PASSWORD}
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes:
- discord-postgres:/var/lib/postgresql/data:rw
eturnal:
image: ghcr.io/processone/eturnal:1.12.0@sha256:c4ad43bc6a26d418455a0c89df9ce9850798c0a1401fc751ce43d831fd34e19b
user: 0:0 # to access caddy certs
ports:
- '3478:3478'
- '32000-32200:32000-32200'
- '3478:3478/udp'
- '32000-32200:32000-32200/udp'
volumes:
- caddy_data:/caddy-data:ro
configs:
- source: eturnal
target: /etc/eturnal.yml
postgres-sync:
image: postgres:15.6-alpine@sha256:d00564ed4c14d702b7b4465dad4f4621c2eb985a21758b27d20c673b9fc3ebd4
restart: always
# These will be used in homeserver.yaml later on
environment:
- POSTGRES_DB=sync
- POSTGRES_USER=sync
- POSTGRES_PASSWORD=${MATRIX_SLIDING_SYNC_POSTGRES_PASSWORD}
- POSTGRES_INITDB_ARGS=--encoding=UTF-8 --lc-collate=C --lc-ctype=C
volumes:
- sliding-sync-postgres:/var/lib/postgresql/data
networks:
default:
sliding-sync:
image: ghcr.io/matrix-org/sliding-sync:v0.99.15@sha256:3e23aaf4950ca861bdf14a772ddc6ca8c0084a9e38d3c4126d9232ba47a87b96
restart: always
environment:
- SYNCV3_SERVER=https://matrix.aosus.org
- SYNCV3_DB=${MATRIX_SLIDING_SYNC_POSTGRES_CONNECTION_STRING}
- SYNCV3_SECRET=${MATRIX_SLIDING_SYNC_SECRET}
depends_on:
- postgres-sync
- synapse
networks:
web:
default:
configs:
synapse-homeserver:
file: /home/aosus/matrix/homeserver.yaml
synapse-log-config:
file: /home/aosus/matrix/log.config
mautrix-telegram-appservice:
file: /home/aosus/matrix/mautrix-telegram/app-service-registration.yaml
mautrix-telegram-config:
file: /home/aosus/matrix/mautrix-telegram/config.yaml
mautrix-discord-config:
file: /home/aosus/matrix/mautrix-discord/config.yaml
mautrix-discord-appservice:
file: /home/aosus/matrix/mautrix-discord/app-service-registration.yaml
eturnal:
file: /home/aosus/matrix/eturnal.yml
# import secrets from environment variables set by the github runner
secrets:
matrix-signing-key:
environment: "MATRIX_SIGNING_KEY"
volumes:
caddy_data:
external: true
discord-postgres:
sliding-sync-postgres: