cichy1173
@cichy1173@szmer.info
- Comment on Migrated my Docker Compose homelab to OpenTofu 1 day ago:
Finally found someone who uses OpenTofu for Docker too. I saw many opinions and thinking that dropping Compose for OpenTofu/Terraform is silly, because Compose is “more native”. I use OpenTofu for Docker too, but I structured code in other way, I have a module that mimics compose in some way, but is simpler for me to use. I published module here: codeberg.org/cichy1173/cichyform
I do not published my IaC, but I can show how code looks like for service:
module "adguard" { source = "git::ssh://git@codeberg.org/cichy1173/mylab-opentofu.git//modules/docker_service?ref=docker_service-v1.1" service_name = "adguardhome" image_name = "adguard/adguardhome:latest" volumes = [ { host_path = "/home/cichy/docker/adguard/adguard/conf" container_path = "/opt/adguardhome/conf" }, { host_path = "/home/cichy/docker/adguard/adguard/work" container_path = "/opt/adguardhome/work" } ] ports = [ { internal = 53 external = 53 protocol = "udp" }, { internal = 80 external = 80 }, { internal = 443 external = 443 }, { internal = 853 external = 853 }, { internal = 3000 external = 3000 } ] environment_variables = [] }
I also created an Forgejo Action to run plan on stacks with this module to check if there is a new image under the tag
:latest
. Oh, and also I manage Adguard Home using OpenTofu, it is very powerful: codeberg.org/…/adguard-home-cm-repository - Comment on Zabbix in selfhosted env 2 days ago:
What is complicated in Zabbix?
- Submitted 3 days ago to selfhosted@lemmy.world | 10 comments
- Comment on Ansible sounds interesting 1 month ago:
Sounds like you are looking for Opentofu/Terraform. I use Opentofu to fastly create VMs on Proxmox with Cloud Init scripts. In scenario where one VM hosts one service I try to build IaC that way I can destroy VM and create a new one without loosing anything, data nor configuration.
- Comment on Has anyone tested yunohost? 2 months ago:
It can be done using Forgejo Actions. I did something like that with Github Actions. I host static website on my Yunohost server using app named
my_webapp
and I wrote Github Action Workflow that deploys it intomy_webapp
directory - Comment on Has anyone tested yunohost? 2 months ago:
Yunohost has been recommended to me a couple of years ago and this is a software that brought me into #selfhosting.
Thanks to Yunohost’s application catalog, I got familiar with quite a few interesting applications, learnt about their capabilities, and I still use many of them today, such as Hedgedoc and Wallabag. In addition, Yunohost makes it easy to manage domains or reverse proxies. I currently work as SysOps/SysAdmin/DevOps and when I choose to deploy an application, I opt for something I have more control over, but without yunohost I would never have stepped into this career path. I continue to use yunohost on my main server, which is a bastion of stability for me, but I test new apps and host them on a separate server. In Yunohost, on the other hand, I install the Redirect application to conveniently have access to them outside my network.
- Comment on Has anyone tested yunohost? 2 months ago:
Not exactly. Yunohost offers solution to host services openly to the internet thanks to simplified configuration of domains (and it even offers free domains) and reverse proxy. Also it has built in email server (not client, but the server). Apps are packaged in its own format and with unique configuration, it is not just some wrapper for Docker Conpose