[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