Skip to content

Instantly share code, notes, and snippets.

@storopoli
Last active February 2, 2026 01:13
Show Gist options
  • Select an option

  • Save storopoli/77c5bd0b01e84f2007aa86def5d76e79 to your computer and use it in GitHub Desktop.

Select an option

Save storopoli/77c5bd0b01e84f2007aa86def5d76e79 to your computer and use it in GitHub Desktop.

Revisions

  1. storopoli revised this gist Jul 25, 2025. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    services:
    homeserver:
    # continuwuity:v0.5.0-rc.6
    image: forgejo.ellis.link/continuwuation/continuwuity@sha256:4faba7a3764ffda4d578a1b229832169f2a6ef47264ea6f60c18b94f7db3eeaa
    # continuwuity:v0.5.0-rc.7
    image: forgejo.ellis.link/continuwuation/continuwuity@sha256:730bd3d339f54afa4906d48148b51bd0ae416e8dc5c0829ac198c0c9cd423b0d
    restart: unless-stopped
    container_name: homeserver
    hostname: homeserver
  2. storopoli revised this gist Jun 15, 2025. 1 changed file with 5 additions and 5 deletions.
    10 changes: 5 additions & 5 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -1,7 +1,7 @@
    services:
    homeserver:
    # continuwuity:v0.5.0-rc.5
    image: forgejo.ellis.link/continuwuation/continuwuity@sha256:8cea0d0c2b89a4589ef608ea5d01d0d793e5bc234374301334cb41afa0423a9a
    # continuwuity:v0.5.0-rc.6
    image: forgejo.ellis.link/continuwuation/continuwuity@sha256:4faba7a3764ffda4d578a1b229832169f2a6ef47264ea6f60c18b94f7db3eeaa
    restart: unless-stopped
    container_name: homeserver
    hostname: homeserver
    @@ -14,11 +14,11 @@ services:
    CONDUWUIT_DATABASE_PATH: /var/lib/conduwuit
    CONDUWUIT_PORT: 6167
    CONDUWUIT_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB
    CONDUWUIT_ALLOW_REGISTRATION: 'false'
    CONDUWUIT_ALLOW_REGISTRATION: "false"
    CONDUWUIT_REGISTRATION_TOKEN: ${CONDUWUIT_REGISTRATION_TOKEN} # A registration token is required when registration is allowed.
    #CONDUWUIT_YES_I_AM_VERY_VERY_SURE_I_WANT_AN_OPEN_REGISTRATION_SERVER_PRONE_TO_ABUSE: 'true'
    CONDUWUIT_ALLOW_FEDERATION: 'true'
    CONDUWUIT_ALLOW_CHECK_FOR_UPDATES: 'true'
    CONDUWUIT_ALLOW_FEDERATION: "true"
    CONDUWUIT_ALLOW_CHECK_FOR_UPDATES: "true"
    CONDUWUIT_TRUSTED_SERVERS: '["matrix.org"]'
    #CONDUWUIT_LOG: warn,state_res=warn
    CONDUWUIT_ADDRESS: 0.0.0.0
  3. storopoli renamed this gist May 12, 2025. 1 changed file with 0 additions and 0 deletions.
    File renamed without changes.
  4. storopoli revised this gist May 12, 2025. 1 changed file with 5 additions and 1 deletion.
    6 changes: 5 additions & 1 deletion .gitignore
    Original file line number Diff line number Diff line change
    @@ -1 +1,5 @@
    .env
    .env
    conduwuit-data
    heisenbridge-data
    mautrix-discord-data
    mautrix-telegram-data
  5. storopoli revised this gist May 12, 2025. 1 changed file with 1 addition and 4 deletions.
    5 changes: 1 addition & 4 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -6,7 +6,7 @@ services:
    container_name: homeserver
    hostname: homeserver
    volumes:
    - db:/var/lib/conduwuit
    - ./conduwuit-data:/var/lib/conduwuit
    # - /etc/resolv.conf:/etc/resolv.conf:ro # Use the host's DNS resolver rather than Docker's.
    # - ./conduwuit.toml:/etc/conduwuit.toml
    environment:
    @@ -85,9 +85,6 @@ services:
    aliases:
    - heisenbridge

    volumes:
    db:


    networks:
    matrix:
  6. storopoli revised this gist May 11, 2025. 1 changed file with 8 additions and 1 deletion.
    9 changes: 8 additions & 1 deletion docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -7,7 +7,7 @@ services:
    hostname: homeserver
    volumes:
    - db:/var/lib/conduwuit
    - /etc/resolv.conf:/etc/resolv.conf:ro # Use the host's DNS resolver rather than Docker's.
    # - /etc/resolv.conf:/etc/resolv.conf:ro # Use the host's DNS resolver rather than Docker's.
    # - ./conduwuit.toml:/etc/conduwuit.toml
    environment:
    CONDUWUIT_SERVER_NAME: storopoli.com # EDIT THIS
    @@ -31,6 +31,7 @@ services:
    matrix:
    aliases:
    - homeserver
    #entrypoint: conduwuit --execute "users create_user jose"

    mautrix-discord:
    # mautrix-discord:v0.7.3
    @@ -40,6 +41,8 @@ services:
    hostname: mautrix-discord
    volumes:
    - ./mautrix-discord-data:/data
    ports:
    - "29334:29334"
    depends_on:
    - homeserver
    networks:
    @@ -57,6 +60,8 @@ services:
    - ./mautrix-telegram-data:/data
    depends_on:
    - homeserver
    ports:
    - "29335:29335"
    networks:
    matrix:
    aliases:
    @@ -73,6 +78,8 @@ services:
    entrypoint: /heisenbridge-init.sh
    depends_on:
    - homeserver
    ports:
    - "9898:9898"
    networks:
    matrix:
    aliases:
  7. storopoli revised this gist May 11, 2025. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion heisenbridge-init.sh
    Original file line number Diff line number Diff line change
    @@ -7,4 +7,4 @@ if [ ! -f /data/heisenbridge.yaml ]; then
    fi

    echo "Starting Heisenbridge..."
    python -m heisenbridge -c /data/heisenbridge.yaml --verbose --listen-address 0.0.0.0 -listen-port 9898 http://homeserver:6167
    python -m heisenbridge -c /data/heisenbridge.yaml --verbose --listen-address 0.0.0.0 --listen-port 9898 http://homeserver:6167
  8. storopoli revised this gist May 4, 2025. 3 changed files with 44 additions and 9 deletions.
    1 change: 1 addition & 0 deletions .gitignore
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    .env
    45 changes: 39 additions & 6 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -3,12 +3,14 @@ services:
    # continuwuity:v0.5.0-rc.5
    image: forgejo.ellis.link/continuwuation/continuwuity@sha256:8cea0d0c2b89a4589ef608ea5d01d0d793e5bc234374301334cb41afa0423a9a
    restart: unless-stopped
    container_name: homeserver
    hostname: homeserver
    volumes:
    - db:/var/lib/conduwuit
    - /etc/resolv.conf:/etc/resolv.conf:ro # Use the host's DNS resolver rather than Docker's.
    # - ./conduwuit.toml:/etc/conduwuit.toml
    environment:
    CONDUWUIT_SERVER_NAME: storopoli..com # EDIT THIS
    CONDUWUIT_SERVER_NAME: storopoli.com # EDIT THIS
    CONDUWUIT_DATABASE_PATH: /var/lib/conduwuit
    CONDUWUIT_PORT: 6167
    CONDUWUIT_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB
    @@ -24,31 +26,62 @@ services:
    ports:
    - "6167:6167"
    - "8008:6167"
    - "8448:6167"
    networks:
    matrix:
    aliases:
    - homeserver

    mautrix-discord:
    # mautrix-discord:v0.7.3
    image: dock.mau.dev/mautrix/discord@sha256:852f900a2d326de1894ed8f1f6b22dbc2cc328e4e01ba1065ba32170e63e0ae8
    restart: unless-stopped
    container_name: mautrix-discord
    hostname: mautrix-discord
    volumes:
    - mautrix-discord-data:/data
    - ./mautrix-discord-data:/data
    depends_on:
    - homeserver
    networks:
    matrix:
    aliases:
    - mautrix-discord

    mautrix-telegram:
    # mautrix-telegram:v0.15.2
    image: dock.mau.dev/mautrix/telegram@sha256:a4682b4e87eb7efc1d3f8541d860a2db5fbe37ed3a2c4c20dc4c59d138d61a08
    restart: unless-stopped
    container_name: mautrix-telegram
    hostname: mautrix-telegram
    volumes:
    - mautrix-telegram-data:/data
    - ./mautrix-telegram-data:/data
    depends_on:
    - homeserver
    networks:
    matrix:
    aliases:
    - mautrix-telegram

    heisenbridge:
    # heisenbridge:1.15.3
    image: hif1/heisenbridge@sha256:53dce310a09cebaa684fd1f1ebeb3c78874f98679622e166ea41e7cde774f611
    container_name: heisenbridge
    hostname: heisenbridge
    volumes:
    - ./init/heisenbridge-init.sh:/heisenbridge-init.sh:ro
    - heisenbridge-data:/data
    - ./heisenbridge-init.sh:/heisenbridge-init.sh:ro
    - ./heisenbridge-data:/data
    entrypoint: /heisenbridge-init.sh
    depends_on:
    - homeserver
    networks:
    matrix:
    aliases:
    - heisenbridge

    volumes:
    db:


    networks: {}
    networks:
    matrix:
    driver: bridge
    7 changes: 4 additions & 3 deletions heisenbridge-init.sh
    100644 → 100755
    Original file line number Diff line number Diff line change
    @@ -1,9 +1,10 @@
    #!/bin/sh

    if [ ! -f /data/heisenbridge.yaml ]; then
    echo "Generating registration file for Heisenbridge..."
    python -m heisenbridge -c /data/heisenbridge.yaml --generate-compat --listen-address heisenbridge
    echo "Registration file generated"
    fi

    sleep 5 # wait a bit to avoid reconnect backoff during startup

    python -m heisenbridge -c /data/heisenbridge.yaml --listen-address 0.0.0.0 http://homeserver:8008
    echo "Starting Heisenbridge..."
    python -m heisenbridge -c /data/heisenbridge.yaml --verbose --listen-address 0.0.0.0 -listen-port 9898 http://homeserver:6167
  9. storopoli revised this gist Apr 30, 2025. 2 changed files with 2 additions and 1 deletion.
    1 change: 1 addition & 0 deletions .env
    Original file line number Diff line number Diff line change
    @@ -0,0 +1 @@
    CONDUWUIT_REGISTRATION_TOKEN="foo"
    2 changes: 1 addition & 1 deletion docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -13,7 +13,7 @@ services:
    CONDUWUIT_PORT: 6167
    CONDUWUIT_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB
    CONDUWUIT_ALLOW_REGISTRATION: 'false'
    CONDUWUIT_REGISTRATION_TOKEN: 'foo' # A registration token is required when registration is allowed.
    CONDUWUIT_REGISTRATION_TOKEN: ${CONDUWUIT_REGISTRATION_TOKEN} # A registration token is required when registration is allowed.
    #CONDUWUIT_YES_I_AM_VERY_VERY_SURE_I_WANT_AN_OPEN_REGISTRATION_SERVER_PRONE_TO_ABUSE: 'true'
    CONDUWUIT_ALLOW_FEDERATION: 'true'
    CONDUWUIT_ALLOW_CHECK_FOR_UPDATES: 'true'
  10. storopoli created this gist Apr 29, 2025.
    54 changes: 54 additions & 0 deletions docker-compose.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,54 @@
    services:
    homeserver:
    # continuwuity:v0.5.0-rc.5
    image: forgejo.ellis.link/continuwuation/continuwuity@sha256:8cea0d0c2b89a4589ef608ea5d01d0d793e5bc234374301334cb41afa0423a9a
    restart: unless-stopped
    volumes:
    - db:/var/lib/conduwuit
    - /etc/resolv.conf:/etc/resolv.conf:ro # Use the host's DNS resolver rather than Docker's.
    # - ./conduwuit.toml:/etc/conduwuit.toml
    environment:
    CONDUWUIT_SERVER_NAME: storopoli..com # EDIT THIS
    CONDUWUIT_DATABASE_PATH: /var/lib/conduwuit
    CONDUWUIT_PORT: 6167
    CONDUWUIT_MAX_REQUEST_SIZE: 20000000 # in bytes, ~20 MB
    CONDUWUIT_ALLOW_REGISTRATION: 'false'
    CONDUWUIT_REGISTRATION_TOKEN: 'foo' # A registration token is required when registration is allowed.
    #CONDUWUIT_YES_I_AM_VERY_VERY_SURE_I_WANT_AN_OPEN_REGISTRATION_SERVER_PRONE_TO_ABUSE: 'true'
    CONDUWUIT_ALLOW_FEDERATION: 'true'
    CONDUWUIT_ALLOW_CHECK_FOR_UPDATES: 'true'
    CONDUWUIT_TRUSTED_SERVERS: '["matrix.org"]'
    #CONDUWUIT_LOG: warn,state_res=warn
    CONDUWUIT_ADDRESS: 0.0.0.0
    #CONDUWUIT_CONFIG: '/etc/conduwuit.toml' # Uncomment if you mapped config toml above
    ports:
    - "6167:6167"
    - "8008:6167"

    mautrix-discord:
    # mautrix-discord:v0.7.3
    image: dock.mau.dev/mautrix/discord@sha256:852f900a2d326de1894ed8f1f6b22dbc2cc328e4e01ba1065ba32170e63e0ae8
    restart: unless-stopped
    volumes:
    - mautrix-discord-data:/data

    mautrix-telegram:
    # mautrix-telegram:v0.15.2
    image: dock.mau.dev/mautrix/telegram@sha256:a4682b4e87eb7efc1d3f8541d860a2db5fbe37ed3a2c4c20dc4c59d138d61a08
    restart: unless-stopped
    volumes:
    - mautrix-telegram-data:/data

    heisenbridge:
    # heisenbridge:1.15.3
    image: hif1/heisenbridge@sha256:53dce310a09cebaa684fd1f1ebeb3c78874f98679622e166ea41e7cde774f611
    volumes:
    - ./init/heisenbridge-init.sh:/heisenbridge-init.sh:ro
    - heisenbridge-data:/data
    entrypoint: /heisenbridge-init.sh

    volumes:
    db:


    networks: {}
    9 changes: 9 additions & 0 deletions heisenbridge-init.sh
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,9 @@
    #!/bin/sh

    if [ ! -f /data/heisenbridge.yaml ]; then
    python -m heisenbridge -c /data/heisenbridge.yaml --generate-compat --listen-address heisenbridge
    fi

    sleep 5 # wait a bit to avoid reconnect backoff during startup

    python -m heisenbridge -c /data/heisenbridge.yaml --listen-address 0.0.0.0 http://homeserver:8008