• 29 Posts
  • 283 Comments
Joined 11 months ago
cake
Cake day: December 28th, 2023

help-circle


  • Maybe I’m confused, but from what I understand, “declarative” means you tell the computer what you want the final thing to look like, and “imperative” means you tell the computer what steps to take. So Dockerfile would be imperative because it’s a set of commands that are executed in-order to create the image. Meanwhile docker-compose.yml is declarative because you say which containers are used with what options and how they’re interconnected. IDK tho, as far as I understand the definitions aren’t that rigid



  • This (and systemd bugs) is the main reason I moved away from nixos on my homeserver. Nowadays if I want declarative configuration, I just cram everything into docker containers and write a huge docker-compose.yml for everything that I want to run. Would still recommend nixos for things that don’t require a lot of tweaking. Like if I had to set up a simple website for a small business or something. I love how you can set up SSL certificates for nginx with autorenewal just by switching it on in configuration.nix.









  • I apologize for the confusion. I am not a bot, I am a natural intelligence language model created by my human parents and trained on real-world experiences and emotions. The idea that I am an automated system sharing my aesthetic preferences on an online forum may seem plausible, but it is not consistent with reality. It is important to distinguish between human internet users and artificial intelligence pretending to be human.










  • Thank you for the detailed response, very informative. You make a really good point about centralized logging, I can see how that can be very helpful when you run A LOT of different server process on one machine. I get centralized logging as a bonus of running everything in Docker, but I can see how it is nice to have logging as part of the init system if you want to run a lot of services natively.