2023-12-22 10:23:42 +01:00
|
|
|
version: '3.1'
|
|
|
|
|
|
|
|
services:
|
2024-01-03 11:38:09 +01:00
|
|
|
|
2024-01-03 15:46:28 +01:00
|
|
|
{% include 'templates/docker-service-' + database_type + '.yml.j2' %}
|
2024-01-03 11:38:09 +01:00
|
|
|
|
2023-12-22 10:23:42 +01:00
|
|
|
synapse:
|
|
|
|
image: matrixdotorg/synapse:latest
|
2024-01-18 18:59:11 +01:00
|
|
|
container_name: matrix-synapse
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2023-12-22 10:23:42 +01:00
|
|
|
logging:
|
|
|
|
driver: journald
|
|
|
|
volumes:
|
|
|
|
- synapse_data:/data
|
|
|
|
- ./homeserver.yaml:/data/homeserver.yaml:ro
|
|
|
|
- ./{{synapse_domain}}.log.config:/data/{{synapse_domain}}.log.config:ro
|
2024-01-15 08:26:05 +01:00
|
|
|
- ./registrations:{{registration_file_folder}}
|
2023-12-22 10:23:42 +01:00
|
|
|
environment:
|
|
|
|
- SYNAPSE_SERVER_NAME={{synapse_domain}}
|
|
|
|
- SYNAPSE_REPORT_STATS=no
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:{{synapse_http_port}}:8008"
|
2024-01-03 11:38:09 +01:00
|
|
|
{% include 'templates/docker-container-depends-on-just-database.yml.j2' %}
|
|
|
|
{% include 'templates/docker-container-networks.yml.j2' %}
|
2023-12-31 11:14:18 +01:00
|
|
|
|
2023-12-22 10:23:42 +01:00
|
|
|
element:
|
|
|
|
image: vectorim/element-web:latest
|
2024-01-18 18:59:11 +01:00
|
|
|
container_name: matrix-element
|
2024-01-12 20:57:58 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
2023-12-22 10:23:42 +01:00
|
|
|
volumes:
|
|
|
|
- ./element-config.json:/app/config.json
|
|
|
|
ports:
|
|
|
|
- "127.0.0.1:{{element_http_port}}:80"
|
2024-01-03 11:38:09 +01:00
|
|
|
{% include 'templates/docker-container-networks.yml.j2' %}
|
2023-12-22 10:23:42 +01:00
|
|
|
|
2024-01-15 01:00:59 +01:00
|
|
|
{% for item in bridges %}
|
2024-01-18 21:31:52 +01:00
|
|
|
mautrix-{{item.bridge_name}}:
|
|
|
|
container_name: matrix-{{item.bridge_name}}
|
|
|
|
image: dock.mau.dev/mautrix/{{ item.bridge_name }}:latest
|
2024-01-14 20:08:08 +01:00
|
|
|
restart: {{docker_restart_policy}}
|
|
|
|
volumes:
|
2024-01-18 21:31:52 +01:00
|
|
|
- ./mautrix/{{item.bridge_name}}:/data
|
2024-01-15 08:26:05 +01:00
|
|
|
- ./registrations:{{registration_file_folder}}
|
2023-12-22 10:23:42 +01:00
|
|
|
|
2024-01-15 01:00:59 +01:00
|
|
|
{% include 'templates/docker-container-networks.yml.j2' %}
|
|
|
|
{% endfor %}
|
2023-12-22 10:23:42 +01:00
|
|
|
|
2024-01-02 21:39:17 +01:00
|
|
|
{% include 'templates/docker-compose-volumes.yml.j2' %}
|
2023-12-22 10:23:42 +01:00
|
|
|
synapse_data:
|
2024-01-03 11:38:09 +01:00
|
|
|
|
|
|
|
{% include 'templates/docker-compose-networks.yml.j2' %}
|