-
-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Matrix Chat as Service With Element WebUI #4444
base: next
Are you sure you want to change the base?
Conversation
This template is not yet completed I think because there is no port and no way to access the service over a domain is this intended? Please use the Coolify Magic to make this work: https://coolify.io/docs/knowledge-base/docker/compose#coolifys-magic-environment-variables |
it is working on my side ; the code part respensible to generate a domain is : element: i dont know if i miss somme thing but for sur the PR need Manual Check and Fix ; it require to add Health check and fix the homeserver.yaml to be able to run our own homeserver here is the log : config file '/data/homeserver.yaml' does not exist. You should either create a new config file by running with the this cane be genberated with this command : docker run --rm -e SYNAPSE_SERVER_NAME=element-pww48cockwcwwg4k4sw08w4c.yourdomain -e SYNAPSE_REPORT_STATS=no -v /var/lib/docker/volumes/pww48cockwcwwg4k4sw08w4c_synapse-data/_data:/data matrixdotorg/synapse:v1.84.1 generate and it can be edited using : nano /var/lib/docker/volumes/pww48cockwcwwg4k4sw08w4c_synapse-data/_data/homeserver.yaml if any one can test and help me with this fix |
Thanks it looks better now as you said the healthchecks are missing and not sure what you mean by homeserver.yaml but these steps should be automated if possible inside the compose file or if not possible via docs. |
matrix.org is a decentralised communication platforme ; you can create an account on the main network called [matrix.org] or you can be the owner of the data by editing the homeserver.yaml to save all app data in your local server |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please make the changes in my comments and also add healthchecks to each container.
templates/compose/matrix-element.yml
Outdated
services: | ||
synapse: | ||
image: "docker.io/matrixdotorg/synapse:v1.84.1" | ||
restart: unless-stopped |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not needed coolify adds this by default.
templates/compose/matrix-element.yml
Outdated
volumes: | ||
- synapse_data:/data | ||
depends_on: | ||
- synapse_db |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Make sure the health checks check for condition healthy of the resource.
@peaklabs-dev , i have make somme changes , not sure if they follow the coolify standard , please take a look and let me know if any thing to fix , |
You can take a look at this example https://github.com/coollabsio/coolify/blob/main/templates/compose/nextcloud-with-postgres.yaml where you can see healthchecks and so on, also you should use an entrypoint script or command to execute the command so it is automated as much as possible. |
How would one supply a entrypoint script? |
what do ypu mean bro ? |
This is in reply to @peaklabs-dev's comment. |
Would be lovely to see this in production. I've taken a crack at it but haven't seen anything production worthy. |
we have add somme editing and the entrypoint as well to generate the config file ; the service in general is working on coolify but for somme reason generating config file for the homeserver.yaml on the fly is not working ; i generate it manualy by running the command i just montion in top comment here is the oficiel docker image with guides : DOCKER HUB |
Run the following command to generate the docker run --rm -e SYNAPSE_SERVER_NAME=matrix-b48owg0cwsg0cssoksosw88c.yourdomain \
-e SYNAPSE_REPORT_STATS=no \
-v /var/lib/docker/volumes/b48owg0cwsg0cssoksosw88c_synapse-data/_data:/data \
matrixdotorg/synapse:v1.84.1 generate This command will create the necessary configuration file for your Synapse server. Step 2: Edit the After generating the
nano /var/lib/docker/volumes/b48owg0cwsg0cssoksosw88c_synapse-data/_data/homeserver.yaml
enable_registration: true
enable_registration_without_verification: true Then Navigate To [https://element-b48owg0cwsg0cssoksosw88c.yourdomain] Click On Create account Then Click Edit To Change The Server From [Matrix.Org] To [https://matrix-b48owg0cwsg0cssoksosw88c.yourdomain] Important Update
docker run --rm -e SYNAPSE_SERVER_NAME=matrix-b48owg0cwsg0cssoksosw88c.yourdomain \
-e SYNAPSE_REPORT_STATS=no \
-v /var/lib/docker/volumes/b48owg0cwsg0cssoksosw88c_synapse-data/_data:/data \
matrixdotorg/synapse:v1.84.1 generate This will generate the
Alternative Option: Use the Matrix.org ServerIf you don’t wish to manually generate the |
Changes
Add Matrix Chat as Service With Element WebUI
The matrix.org server is working, but the homeserver needs proper setup in the homeserver.yaml file.
Here is The Install Docs [Install_With_Docker_Compose]