matrix/docker-compose.yaml

109 lines
2.7 KiB
YAML
Raw Normal View History

2024-03-25 23:23:07 +00:00
---
services:
synapse:
2024-04-27 20:00:32 +00:00
image: ghcr.io/element-hq/synapse:v1.105.1
restart: always
2024-03-25 23:23:07 +00:00
environment:
- SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
volumes:
- ./config/synapse:/data
- /etc/default/matrix_shared_secret:/etc/default/matrix_shared_secret:ro
depends_on:
- db
networks:
matrix_server:
ipv4_address: 10.10.10.4
2024-04-25 07:14:07 +00:00
matrix_db:
2024-03-25 23:23:07 +00:00
ports:
- 8008:8008
db:
2024-04-27 20:00:32 +00:00
image: docker.io/postgres:16.2-alpine
2024-03-25 23:23:07 +00:00
environment:
- POSTGRES_DB=synapse
2024-04-10 15:13:15 +00:00
- POSTGRES_USER=matrix_synapse
2024-03-25 23:23:07 +00:00
- POSTGRES_PASSWORD=PG_PASS
- POSTGRES_INITDB_ARGS=--encoding=UTF8 --lc-collate=C --lc-ctype=C
volumes:
- ./db:/var/lib/postgresql/data
networks:
2024-04-25 07:14:07 +00:00
matrix_db:
2024-03-25 23:23:07 +00:00
element:
2024-04-27 20:00:32 +00:00
image: vectorim/element-web:v1.11.65
2024-03-25 23:23:07 +00:00
restart: unless-stopped
volumes:
- ./config/element/element-config.json:/app/config.json
networks:
matrix_server:
ipv4_address: 10.10.10.3
depends_on:
- synapse
sydent:
2024-04-27 20:00:32 +00:00
image: docker.io/matrixdotorg/sydent:v2.6.1
2024-03-25 23:23:07 +00:00
restart: unless-stopped
networks:
matrix_server:
ipv4_address: 10.10.10.5
depends_on:
- synapse
synapse-admin:
2024-04-27 20:00:32 +00:00
image: awesometechnologies/synapse-admin:0.10.1
2024-03-25 23:23:07 +00:00
restart: unless-stopped
networks:
matrix_server:
ipv4_address: 10.10.10.6
depends_on:
- synapse
sliding-sync:
2024-04-27 20:00:32 +00:00
image: ghcr.io/matrix-org/sliding-sync:v0.99.16
restart: always
2024-03-25 23:23:07 +00:00
environment:
- SYNCV3_BINDADDR=:8008
- SYNCV3_SERVER=https://DOMAIN
- SYNCV3_SECRET=SLIDING_SYNC_KEY
2024-04-10 15:13:15 +00:00
- SYNCV3_DB=user=matrix_synapse dbname=synapse sslmode=disable host=db password=PG_PASS
2024-03-25 23:23:07 +00:00
networks:
matrix_server:
ipv4_address: 10.10.10.7
2024-04-25 07:14:07 +00:00
matrix_db:
2024-03-25 23:23:07 +00:00
depends_on:
- synapse
2024-04-24 07:02:38 +00:00
hydrogen-web:
2024-04-27 20:00:32 +00:00
image: ghcr.io/element-hq/hydrogen-web:v0.4.1
2024-04-24 07:02:38 +00:00
restart: unless-stopped
environment:
- |
CONFIG_OVERRIDE=
{
"push": {
"appId": "io.element.hydrogen.web",
"gatewayUrl": "https://matrix.org",
"applicationServerKey": "BC-gpSdVHEXhvHSHS0AzzWrQoukv2BE7KzpoPO_FfPacqOo3l1pdqz7rSgmB04pZCWaHPz7XRe6fjLaC-WPDopM"
},
"defaultHomeServer": "DOMAIN",
"bugReportEndpointUrl": "https://element.io/bugreports/submit",
"themeManifests": [
"assets/theme-element.json"
],
"defaultTheme": {
"light": "element-light",
"dark": "element-dark"
}
}
networks:
matrix_server:
ipv4_address: 10.10.10.8
2024-03-25 23:23:07 +00:00
networks:
matrix_server:
external: true
2024-04-25 07:14:07 +00:00
matrix_db:
external: false