oliverdavies.uk/content/node.16dc23db-86e4-4c5d-b479-3f92828dae12.json
2025-05-14 00:36:23 +01:00

100 lines
No EOL
4.6 KiB
JSON

{
"uuid": [
{
"value": "16dc23db-86e4-4c5d-b479-3f92828dae12"
}
],
"langcode": [
{
"value": "en"
}
],
"type": [
{
"target_id": "daily_email",
"target_type": "node_type",
"target_uuid": "8bde1f2f-eef9-4f2d-ae9c-96921f8193d7"
}
],
"revision_timestamp": [
{
"value": "2025-05-11T09:00:03+00:00"
}
],
"revision_uid": [
{
"target_type": "user",
"target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849"
}
],
"revision_log": [],
"status": [
{
"value": true
}
],
"uid": [
{
"target_type": "user",
"target_uuid": "b8966985-d4b2-42a7-a319-2e94ccfbb849"
}
],
"title": [
{
"value": "Docker and NixOS playing nicely together"
}
],
"created": [
{
"value": "2024-12-10T00:00:00+00:00"
}
],
"changed": [
{
"value": "2025-05-11T09:00:03+00:00"
}
],
"promote": [
{
"value": false
}
],
"sticky": [
{
"value": false
}
],
"default_langcode": [
{
"value": true
}
],
"revision_translation_affected": [
{
"value": true
}
],
"path": [
{
"alias": "\/daily\/2024\/12\/10\/docker-nixos",
"langcode": "en"
}
],
"body": [
{
"value": "\n <p>As I've added software to my NixOS homelab server, I've found some things that aren't yet available in the nixpkgs repository.<\/p>\n\n<p>A common approach seems to be to use Docker and Docker Compose to run things in containers, especially ones that need multiple services like a web server, a database and a cache or proxy.<\/p>\n\n<p><a href=\"https:\/\/www.oliverdavies.uk\/daily\/2024\/12\/09\/drupal-devenv\">I've moved my development projects from Docker to devenv<\/a>, but I still have Docker installed and available.<\/p>\n\n<p>I knew it was easy to create a container image from a Nix-based setup, but the opposite is also true.<\/p>\n\n<p>It's very easy to run containers within NixOS.<\/p>\n\n<p>For example, here's <a href=\"https:\/\/github.com\/opdavies\/dotfiles\/blob\/8cdc6a511dab5a31b1bc0a90bcdcf361043498e7\/nix\/modules\/nixos\/features\/homelab\/tubearchivist-container.nix\">how I've configured Tube Archivist<\/a>.<\/p>\n\n<p>This was created using a tool called <code>compose2nix<\/code>, but I've seen simpler examples for other services.<\/p>\n\n<p>This made it easy to take a Docker Compose file and convert it to a Docker or Podman container.<\/p>\n\n<p>My preference is to use NixOS services if they exist, but it's great to be able to do this as an alternative when needed.<\/p>\n\n ",
"format": "full_html",
"processed": "\n <p>As I've added software to my NixOS homelab server, I've found some things that aren't yet available in the nixpkgs repository.<\/p>\n\n<p>A common approach seems to be to use Docker and Docker Compose to run things in containers, especially ones that need multiple services like a web server, a database and a cache or proxy.<\/p>\n\n<p><a href=\"https:\/\/www.oliverdavies.uk\/daily\/2024\/12\/09\/drupal-devenv\">I've moved my development projects from Docker to devenv<\/a>, but I still have Docker installed and available.<\/p>\n\n<p>I knew it was easy to create a container image from a Nix-based setup, but the opposite is also true.<\/p>\n\n<p>It's very easy to run containers within NixOS.<\/p>\n\n<p>For example, here's <a href=\"https:\/\/github.com\/opdavies\/dotfiles\/blob\/8cdc6a511dab5a31b1bc0a90bcdcf361043498e7\/nix\/modules\/nixos\/features\/homelab\/tubearchivist-container.nix\">how I've configured Tube Archivist<\/a>.<\/p>\n\n<p>This was created using a tool called <code>compose2nix<\/code>, but I've seen simpler examples for other services.<\/p>\n\n<p>This made it easy to take a Docker Compose file and convert it to a Docker or Podman container.<\/p>\n\n<p>My preference is to use NixOS services if they exist, but it's great to be able to do this as an alternative when needed.<\/p>\n\n ",
"summary": null
}
],
"feeds_item": [
{
"imported": "1970-01-01T00:33:45+00:00",
"guid": null,
"hash": "c46666fe3bbd6c27133967d0e0f292cb",
"target_type": "feeds_feed",
"target_uuid": "90c85284-7ca8-4074-9178-97ff8384fe76"
}
]
}