website/content/docs/install.md
tezlm 3517c338e5
fix the rename
This reverts commit bb1dbee306.
2024-01-26 17:38:20 -08:00

1.8 KiB

+++ title = "install" +++

docker compose

it's planned to be modular and composed of multiple parts

version: '3'

services:
    # This is the main jackwagon server
    backend:
        # image: matrixconduit/matrix-conduit:latest
        build:
            context: .
            args:
                CREATED: '2021-03-16T08:18:27Z'
                VERSION: '0.1.0'
                LOCAL: 'false'
                GIT_REF: origin/master
        restart: unless-stopped
        ports:
            - 8448:6167
        volumes:
            - db:/var/lib/matrix-conduit/
        environment:
            CONDUIT_SERVER_NAME: your.server.name # EDIT THIS
            CONDUIT_DATABASE_PATH: /var/lib/matrix-conduit/
            CONDUIT_DATABASE_BACKEND: rocksdb
            CONDUIT_PORT: 6167
            CONDUIT_MAX_REQUEST_SIZE: 20_000_000 # in bytes, ~20 MB
            CONDUIT_ALLOW_REGISTRATION: 'true'
            CONDUIT_ALLOW_FEDERATION: 'true'
            CONDUIT_ALLOW_CHECK_FOR_UPDATES: 'true'
            CONDUIT_TRUSTED_SERVERS: '["matrix.org"]'
            #CONDUIT_MAX_CONCURRENT_REQUESTS: 100
            #CONDUIT_LOG: warn,rocket=off,_=off,sled=off
            CONDUIT_ADDRESS: 0.0.0.0
            CONDUIT_CONFIG: '' # Ignore this

    # the main frontend
    frontend:
        image: vectorim/element-web:latest
        restart: unless-stopped
        ports:
            - 8009:80

    # handle turn/voip, you can also run this on other servers
    coturn:
      image: coturn/coturn
      restart: unless-stopped
      ports:
        - 3478:3478
        - 3478:3478/udp
        - 5349:5349
        - 5349:5349/udp
        - 49152-65535:49152-65535/udp

    # database
    postgres:
      image: postgres
      restart: always
      environment:
        POSTGRES_PASSWORD: example

volumes:
    db: