this post was submitted on 04 Jul 2024
5 points (100.0% liked)
Nix / NixOS
1743 readers
4 users here now
Main links
Videos
founded 1 year ago
MODERATORS
you are viewing a single comment's thread
view the rest of the comments
view the rest of the comments
I'm about to start my endeavour into docker containers on nix since there isn't a module for the service I want.
How do you do docker containers on nix? My early reading suggests oci-containers
Yes. Oci-containers is similar to how you would setup a docker compose. Its not quite one to one. In particular, networks are odd, since you have to hand write a systemd service to create it? But thats only if you want isolated networks. You can find some examples on my github, I use it for most of my services. Heres an example of nocodb with backing postgres database. Its pretty simple: https://github.com/rutrum/dots/blob/master/hosts/modules/nocodb.nix let me know if you have questions in the future