Putting this request here that was originally proposed by nmaggioni in the github issues list (#211).
"It would be nice to have a more rigorous, non pre-scripted way of self-hosting Bitwarden on one’s own infrastructure.
I am, for example, already managing a Docker environment via Rancher and will soon be migrating to Kubernetes. An externally written script could easily screw something up inside the ecosystem by interacting with the Docker daemon and bypassing the chosen orchestrator.
Something like a plain Docker Compose file or simply a list of required dependencies could greatly help in manually reproducing the automated deployment while keeping it under the chosen orchestrator’s management and avoiding conflicts."
They don’t make this obvious, and the docker-compose file is generated on the fly using a file called DockerComposeBuilder.cs, which is slightly annoying, But still, it should help. I plan on modifying this file to import it and test it on my k8s lab.
The scripts are nice because they build all the dependency files too, so maybe just run it once, get all the files needed, and then alter it as you need.
Hi,
Have you try to create a k8s manifest ?
I think the biggest problem will be the identity.pfx file. It’s a binary file generated by the bitwarden/setup docker image using the Installation Id and Key.
EDIT 1: After some diging I found that file it’s a certificate generated by the folowing code