-
-
Notifications
You must be signed in to change notification settings - Fork 39
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
mash-playbook + matrix-docker-ansible-deploy playbook #64
Comments
The recommended way is to have only one of those playbooks install Traefik. Preferrably Thus, the mash_playbook_reverse_proxy_type: other-traefik-container
mash_playbook_reverse_proxyable_services_additional_network: traefik Also, just one of these playbooks should install Docker and timesync. It doesn't hurt if both have these installation steps, but it's somewhat wasteful. This should be documented better somewhere |
Same question about postgres. As @Gregivy already asked, what about 2 containers with postgres? I have the matrix-playbook running, this provides postgres. Mash has it's own postgres-container? How to combine these two, since I guess, one database-container is better than two with limited ressources. |
It's possible to use a single Postgres instance, but easiest if you run a Postgres instance for each playbook. By default, both playbooks automatically wire components to use their own Postgres instance, so you will be spared a lot of effort. Here's an example of database credentials initialization: mash-playbook/group_vars/mash_servers Lines 231 to 333 in 2176f0b
Here's an example of one service (Miniflux) being connected to the Postgres container network: mash-playbook/group_vars/mash_servers Lines 1621 to 1626 in 2176f0b
If you want mash services to use the Matrix playbook's Postgres, you need to do both of these things manually:
|
Ok, I will stick with the two databases 😄 The traefik config results in a 404. The mash-containers are connected to the traefik-network. But it looks like there is no routing for the 2 new hostnames, "git" and "status". Traefik-log:
The last line here is the request resulting in a 404. It seems, there is a missing piece somewhere in the config. I can't get up the traefik-dashboard on the matrix-side, because of an parsing error in some template. I don't know traefik, but I can connect to the running container. But it looks like there is now way to show the routes via cli. Traefik is fronted by Caddyserver, I have added the 2 new hostnames to the other matrix-releated names in the same block. There are no other ports listening and the request from the outside reaches traefik, so I guess, this part is working, only the routing for the hostnames is missing to treafik. |
What is the best way to combine this playbook with the matrix playbook to run on the same machine?
Is there any nuances of using traefik/postgre? As traefik service is present in both playbooks will it be enough to use it from only one of the playbooks (e.g. if I already use matrix playbook, can skip turning on traefik in mash playbook)?
The text was updated successfully, but these errors were encountered: