services: synapse: container_name: synapse entrypoint: ["sh", "-c", "curl -s -f --retry 7 --retry-all-errors https://kc.${env['domain']}/; exec /start.py"] image: docker.io/matrixdotorg/synapse:latest network_mode: pasta:-a,${env['pasta']['synapse']['ipv4']},-a,${env['pasta']['synapse']['ipv6']} restart: always environment: UID: ${env['users']['synapse']} GID: ${env['users']['synapse']} TZ: ${env['timezone']} ports: - 127.0.0.1:${env['ports']['synapse']}:8008 volumes: - ${env['volumes']['synapse']['datadir']}:/data - ./homeserver.yaml.rendered:/data/homeserver.yaml:ro