Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- # Composer
- services:
- coturn:
- image: coturn/coturn:latest
- restart: unless-stopped
- network_mode: host
- volumes:
- - "./turnserver.conf:/etc/turnserver.conf:ro"
- element-jwt:
- image: ghcr.io/element-hq/lk-jwt-service:latest
- environment:
- - LIVEKIT_URL=wss://{domain}
- - LIVEKIT_KEY=devkey
- - LIVEKIT_SECRET={key}
- restart: unless-stopped
- ports:
- - "127.0.0.1:8080:8080"
- livekit:
- image: livekit/livekit-server:latest
- command: --config /etc/livekit.yaml
- ports:
- - "127.0.0.1:7880:7880/tcp"
- - "7881:7881/tcp"
- - "50100-50200:50100-50200/udp"
- volumes:
- - ./livekit/config.yaml:/etc/livekit.yaml:ro
- restart: unless-stopped
- caddy:
- image: caddy:latest
- restart: unless-stopped
- ports:
- - "80:80"
- - "443:443"
- volumes:
- - ./Caddyfile:/etc/caddy/Caddyfile
- - ./caddy_data:/data/caddy/
- synapse:
- image: docker.io/matrixdotorg/synapse:latest
- restart: always
- environment:
- - SYNAPSE_CONFIG_PATH=/data/homeserver.yaml
- - SYNAPSE_SERVER_NAME={domain}
- - SYNAPSE_SERVER_ADDRESS={domain}
- - SYNAPSE_REPORT_STATS=yes
- volumes:
- - ./synapse:/data
- depends_on:
- - db
- db: ...
- # Livekit config:
- # I could have messed something here
- port: 7880
- bind_addresses:
- - "0.0.0.0"
- rtc:
- tcp_port: 7881
- port_range_start: 50100
- port_range_end: 50200
- use_external_ip: true
- logging:
- level: debug
- turn:
- enabled: false # I have coturn, so not sure if I need this or I should remove coturn and proceed with livekit
- keys:
- devkey: {key}
- # Caddy
- {domain} {
- reverse_proxy /_matrix/* synapse:8008
- reverse_proxy /_synapse/* synapse:8008
- header /.well-known/matrix/* Content-Type application/json
- header /.well-known/matrix/* Access-Control-Allow-Origin *
- header /.well-known/matrix/* Access-Control-Allow-Methods: GET, POST, PUT, DELETE, OPTIONS
- header /.well-known/matrix/* Access-Control-Allow-Headers: X-Requested-With, Content-Type, Authorization
- respond /.well-known/matrix/server `{"m.server": "{domain}:443"}`
- respond /.well-known/matrix/client `{"m.homeserver": {"base_url": "https://{domain}"}, "org.matrix.msc4143.rtc_foci": [{"type": "livekit", "livekit_service_url": "https://sfu-domain"}]}`
- }
- sfu-domain {
- encode gzip
- reverse_proxy /livekit/jwt/* element-jwt:8080
- reverse_proxy /livekit/sfu/* livekit:7880
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement