Homelab-Infra/roles/matrix_synapse/templates/synapse.container.j2

16 lines
418 B
Django/Jinja

[Unit]
Description=Matrix Synapse Homeserver
After=network-online.target postgres.service coturn.service
Requires=postgres.service
[Container]
ContainerName=synapse
Image=docker.io/matrixdotorg/synapse:latest
Volume={{ synapse_config_dir }}:/data:Z
Network=homelab.network
# Expose the client-server API port
PublishPort={{ tailscale_ip }}:8008:8008
UserNS=keep-id
[Install]
WantedBy=multi-user.target default.target