version: '3.4'
services:

  synapse:
    build: 
      context: ./im/build/matrix-synapse
      args:
        # https://github.com/matrix-org/synapse/releases
        VERSION: 1.49.2
        # https://github.com/matrix-org/synapse-s3-storage-provider/commits/main
        # Update with the latest commit on main each time you update the synapse version
        # otherwise synapse may fail to launch due to incompatibility issues
        # see this issue for an example: https://github.com/matrix-org/synapse-s3-storage-provider/issues/64
        S3_VERSION: 8926b4e4178edcda1a32fdb39bd36cef1a1a9d40
    image: lxpz/amd64_synapse:1.49.2-4