My friends are open to leaving Discord which has finally given me a reason to look into Element/Matrix. I found the install instructions and am immediately put off. Is this it? No official docker compose? 😞

  • captcha_incorrect@lemmy.world
    link
    fedilink
    English
    arrow-up
    8
    ·
    1 day ago

    If you like compose files: https://www.composerize.com/

    docker run -it --rm -v <your-data-path>:/data -e SYNAPSE_SERVER_NAME=<your-public-address-subdomain> -e SYNAPSE_REPORT_STATS=no matrixdotorg/synapse:v1.136.0 generate:

    name: <your project name>
    services:
        synapse:
            stdin_open: true
            tty: true
            volumes:
                - <your-data-path>:/data
            environment:
                - SYNAPSE_SERVER_NAME=<your-public-address-subdomain>
                - SYNAPSE_REPORT_STATS=no
            image: matrixdotorg/synapse:v1.136.0
            command: generate
    

    docker run -d --restart=always --name synapse -e SYNAPSE_REPORT_STATS=no -v <your-data-path>:/data -p 8008:8008 matrixdotorg/synapse:v1.136.0:

    name: <your project name>
    services:
        synapse:
            restart: always
            container_name: synapse
            environment:
                - SYNAPSE_REPORT_STATS=no
            volumes:
                - <your-data-path>:/data
            ports:
                - 8008:8008
            image: matrixdotorg/synapse:v1.136.0
    
    
        • vane@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          8 hours ago

          I have a git repo with some directory convention and bash scripts. Ex stop is just

          #!/bin/bash
          name=synapse
          docker stop $name
          docker rm $name
          

          etc. depending on what actions I need to do against container I have bash script for that and if I need to perform same action against other container I just copy paste this file and change name variable. I pull this repo to my containers host and just type ./bin/synapse/stop and I stop synapse.

          Hope that makes sense.