A Matrix homeserver written in Rust https://conduit.rs
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

54 lines
2.2 KiB

  1. # Conduit
  2. version: '3'
  3. services:
  4. homeserver:
  5. ### If you already built the Conduit image with 'docker build' or want to use the Docker Hub image,
  6. ### then you are ready to go.
  7. image: matrixconduit/matrix-conduit:latest
  8. ### If you want to build a fresh image from the sources, then comment the image line and uncomment the
  9. ### build lines. If you want meaningful labels in your built Conduit image, you should run docker-compose like this:
  10. ### CREATED=$(date -u +'%Y-%m-%dT%H:%M:%SZ') VERSION=$(grep -m1 -o '[0-9].[0-9].[0-9]' Cargo.toml) docker-compose up -d
  11. # build:
  12. # context: .
  13. # args:
  14. # CREATED:
  15. # VERSION:
  16. # LOCAL: 'false'
  17. # GIT_REF: HEAD
  18. restart: unless-stopped
  19. ports:
  20. - 8448:8000
  21. volumes:
  22. - db:/srv/conduit/.local/share/conduit
  23. ### Uncomment if you want to use Rocket.toml to configure Conduit
  24. ### Note: Set env vars will override Rocket.toml values
  25. # - ./Rocket.toml:/srv/conduit/Rocket.toml
  26. environment:
  27. ROCKET_SERVER_NAME: localhost:8000 # replace with your own name
  28. ### Uncomment and change values as desired
  29. # ROCKET_LOG: normal # Available levels are: off, debug, normal, critical
  30. # ROCKET_PORT: 8000
  31. # ROCKET_REGISTRATION_DISABLED: 'true'
  32. # ROCKET_ENCRYPTION_DISABLED: 'true'
  33. # ROCKET_DATABASE_PATH: /srv/conduit/.local/share/conduit
  34. # ROCKET_WORKERS: 10
  35. # ROCKET_MAX_REQUEST_SIZE: 20_000_000 # in bytes, ~20 MB
  36. ### Uncomment if you want to use your own Element-Web App.
  37. ### Note: You need to provide a config.json for Element and you also need a second
  38. ### Domain or Subdomain for the communication between Element and Conduit
  39. ### Config-Docs: https://github.com/vector-im/element-web/blob/develop/docs/config.md
  40. # element-web:
  41. # image: vectorim/riot-web:latest
  42. # restart: unless-stopped
  43. # ports:
  44. # - 8009:80
  45. # volumes:
  46. # - ./element_config.json:/app/config.json
  47. # depends_on:
  48. # - homeserver
  49. volumes:
  50. db: