version: "3.3" services: synapse: image: "matrixdotorg/synapse:latest" container_name: "synapse" volumes: - "./data:/data" environment: VIRTUAL_HOST: "sub.domain.com" VIRTUAL_PORT: 8008 LETSENCRYPT_HOST: "sub.domain.com" SYNAPSE_SERVER_NAME: "sub.domain.com" SYNAPSE_REPORT_STATS: "yes" # networks: ["server"] # networks: # server: # external: true https://linuxhandbook.com/install-matrix-synapse-docker/