2023-12-12 22:36:35 +01:00
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
services:
|
|
|
|
|
2023-12-13 08:58:53 +01:00
|
|
|
synapse:
|
2023-12-12 22:36:35 +01:00
|
|
|
image: matrixdotorg/synapse:latest
|
2023-12-14 01:34:12 +01:00
|
|
|
restart: always
|
2023-12-12 22:36:35 +01:00
|
|
|
logging:
|
|
|
|
driver: journald
|
|
|
|
volumes:
|
2023-12-13 08:58:53 +01:00
|
|
|
- synapse_data:/data
|
2023-12-12 22:36:35 +01:00
|
|
|
- ./homeserver.yaml:/data/homeserver.yaml:ro
|
|
|
|
- ./{{domain}}.log.config:/data/{{domain}}.log.config:ro
|
|
|
|
environment:
|
|
|
|
- SYNAPSE_SERVER_NAME={{domain}}
|
|
|
|
- SYNAPSE_REPORT_STATS=no
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:{{http_port}}:8008"
|
|
|
|
depends_on:
|
|
|
|
- database
|
|
|
|
database:
|
|
|
|
logging:
|
2023-12-14 01:34:12 +01:00
|
|
|
driver: journald
|
|
|
|
image: mariadb
|
|
|
|
restart: always
|
2023-12-12 22:36:35 +01:00
|
|
|
environment:
|
2023-12-14 01:34:12 +01:00
|
|
|
MYSQL_DATABASE: "matrix"
|
|
|
|
MYSQL_USER: "matrix"
|
|
|
|
MYSQL_PASSWORD: "{{matrix_database_password}}"
|
|
|
|
MYSQL_ROOT_PASSWORD: "{{matrix_database_password}}"
|
|
|
|
MARIADB_AUTO_UPGRADE: "1"
|
|
|
|
volumes:
|
|
|
|
- database:/var/lib/mysql
|
2023-12-12 22:36:35 +01:00
|
|
|
healthcheck:
|
2023-12-14 01:34:12 +01:00
|
|
|
test: "/usr/bin/mariadb --user=matrix --password={{matrix_database_password}} --execute \"SHOW DATABASES;\""
|
|
|
|
interval: 3s
|
|
|
|
timeout: 1s
|
|
|
|
retries: 5
|
2023-12-12 22:36:35 +01:00
|
|
|
|
2023-12-13 08:58:53 +01:00
|
|
|
# bridges
|
|
|
|
#mautrix-telegram:
|
|
|
|
# container_name: mautrix-telegram
|
|
|
|
# image: dock.mau.dev/mautrix/telegram:<version>
|
|
|
|
# restart: unless-stopped
|
|
|
|
# volumes:
|
|
|
|
# - telegram_bridge_data:/data
|
|
|
|
|
|
|
|
#mautrix-whatsapp:
|
|
|
|
# container_name: mautrix-whatsapp
|
|
|
|
# image: dock.mau.dev/mautrix/whatsapp:<version>
|
|
|
|
# restart: unless-stopped
|
|
|
|
# volumes:
|
|
|
|
# - whatsapp_bridge_data:/data
|
|
|
|
|
|
|
|
#mautrix-facebook:
|
|
|
|
# container_name: mautrix-facebook
|
|
|
|
# image: dock.mau.dev/mautrix/facebook:<version>
|
|
|
|
# restart: unless-stopped
|
|
|
|
# volumes:
|
|
|
|
# - facebook_bridge_data:/data
|
|
|
|
|
|
|
|
#mautrix-instagram:
|
|
|
|
# container_name: mautrix-instagram
|
|
|
|
# image: dock.mau.dev/mautrix/instagram:<version>
|
|
|
|
# restart: unless-stopped
|
|
|
|
# volumes:
|
|
|
|
# - instagram_bridge_data:/data
|
|
|
|
|
2023-12-12 22:36:35 +01:00
|
|
|
volumes:
|
|
|
|
database:
|
2023-12-13 08:58:53 +01:00
|
|
|
synapse_data:
|
|
|
|
#telegram_bridge_data:
|
|
|
|
#whatsapp_bridge_data:
|
|
|
|
#facebook_bridge_data:
|
|
|
|
#instagram_bridge_data:
|
2023-12-12 22:36:35 +01:00
|
|
|
networks:
|
|
|
|
default:
|
|
|
|
driver: bridge
|