Slavi Pantaleev
d12643eb91
Do not use `docker stop --time` (deprecated in Docker v28 in favor of `--timeout` or just `-t`)
`-t` works on both old and new Docker versions, so it's best to use that.
1 рік тому
Slavi Pantaleev
2511b34a7c
Stop containers gracefully, instead of outright killing them
2 роки тому
Slavi Pantaleev
f28e7ef9c7
Add (native) Traefik support to matrix-client-cinny
Previously, it had to go through matrix-nginx-proxy.
It's exposed to Traefik directly via container labels now
3 роки тому
Slavi Pantaleev
7086c0ebe3
matrix_host_command_sh -> devture_systemd_docker_base_host_command_sh (via com.devture.ansible.role.systemd_docker_base)
3 роки тому
Slavi Pantaleev
a9a81460ec
matrix_host_command_docker -> devture_systemd_docker_base_host_command_docker (via com.devture.ansible.role.systemd_docker_base)
3 роки тому
Slavi Pantaleev
f03f716989
matrix_systemd_unit_home_path -> devture_systemd_docker_base_systemd_unit_home_path (via com.devture.ansible.role.systemd_docker_base)
3 роки тому
Slavi Pantaleev
410a915a8a
Move roles/matrix* to roles/custom/matrix*
This paves the way for installing other roles into `roles/galaxy` using `ansible-galaxy`,
similar to how it's done in:
- https://github.com/spantaleev/gitea-docker-ansible-deploy
- https://github.com/spantaleev/nextcloud-docker-ansible-deploy
In the near future, we'll be removing a lot of the shared role code from here
and using upstream roles for it. Some of the core `matrix-*` roles have
already been extracted out into other reusable roles:
- https://github.com/devture/com.devture.ansible.role.postgres
- https://github.com/devture/com.devture.ansible.role.systemd_docker_base
- https://github.com/devture/com.devture.ansible.role.timesync
- https://github.com/devture/com.devture.ansible.role.vars_preserver
- https://github.com/devture/com.devture.ansible.role.playbook_runtime_messages
- https://github.com/devture/com.devture.ansible.role.playbook_help
We just need to migrate to those.
3 роки тому
Slavi Pantaleev
0364c6c634
Suppress old container cleanup (kill/rm) failures
People often report and ask about these "failures".
More-so previously, when the `docker kill/rm` output was collected,
but it still happens now when people do `systemctl status
matrix-something` and notice that it says "FAILURE".
Suppressing to avoid further time being wasted on saying "this is
expected".
4 роки тому
Slavi Pantaleev
86c36523df
Replace ExecStopPost with ExecStop
Reverts b1b4ba501fdfaa, 90c9801c560b6, a3c84f78ca9c65a, ..
I haven't really traced it (yet), but on some servers, I'm observing
`ansible-playbook ... --tags=start` completing very slowly, waiting
to stop services. I can't reproduce this on all Matrix servers I manage.
I suspect that either the systemd version is to blame or that some
specific service is not responding well to some `docker kill/rm` command.
`ExecStop` seems to work great in all cases and it's what we've been
using for a very long time, so I'm reverting to that.
4 роки тому
rakshazi
5788a16a2e
added matrix-client-cinny
4 роки тому
Slavi Pantaleev
b1b4ba501f
Replace ExecStop with ExecStopPost
ExecStopPost should allow us to clean up (docker kill + docker rm)
even if the ExecStart (docker run ..) command failed, and not just after
a graceful service stop was initiated.
Source: https://www.freedesktop.org/software/systemd/man/systemd.service.html#ExecStopPost=
4 роки тому
Michael Collins
98e6cd685d
sync with previous repo
4 роки тому
Michael-GMH
86e4649578
GoMatrixHosting v0.5.5
4 роки тому
Michael-GMH
03006eb5ab
GoMatrixHosting v0.5.5
4 роки тому
Michael-GMH
85777e8f96
merge with upstream
4 роки тому
Slavi Pantaleev
df3dd1c824
Use --read-only FS for metrics-related containers
It seems like it doesn't cause any issues for any of these services.
5 роки тому
Peetz0r
eb5aa93e8a
Grafana
Also includes the dashboards for Synapse and for Node Exporter.
Again has only been tested on debian amd64 so far, but the grafana docker image is available for arm64 and arm32. Nice.
5 роки тому
Peetz0r
13ef9e85cf
Prometheus
Initial attempt. Seems to work fine.
Only tested on debian amd64 so far
5 роки тому