{"id":8811,"date":"2026-08-05T14:01:35","date_gmt":"2026-08-05T12:01:35","guid":{"rendered":"https:\/\/www.lukaswojcik.com\/blog\/?page_id=8811"},"modified":"2026-08-05T15:36:38","modified_gmt":"2026-08-05T13:36:38","slug":"raspberry-pi-docker-compose-edge-linter","status":"publish","type":"page","link":"https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/raspberry-pi-docker-compose-edge-linter\/","title":{"rendered":"Raspberry Pi Docker Compose Edge Linter"},"content":{"rendered":"<div class=\"gtm-analyser-container\" style=\"background: var(--bg-panel, #1e1e24); padding: 25px; border-radius: 8px; border: 1px solid var(--border, #2a2a35);\">\n<p style=\"color: var(--text-secondary); margin-bottom: 20px;\">\n        Lint <code>docker-compose.yml<\/code> configurations against edge server best practices (timezones, restart rules, storage).\n    <\/p>\n<div style=\"margin-bottom: 15px;\">\n        <label style=\"color: var(--text-primary); font-weight: bold; display: block; margin-bottom: 6px;\">Docker Compose YAML Snippet:<\/label><br \/>\n        <textarea id=\"rpi-docker-input\" style=\"width: 100%; height: 160px; padding: 12px; background: var(--bg-body, #101416); border: 1px solid var(--border); color: var(--text-primary); border-radius: 6px; font-family: monospace; resize: vertical;\">services:<br \/>\n  homeassistant:<br \/>\n    image: ghcr.io\/home-assistant\/home-assistant:stable<br \/>\n    volumes:<br \/>\n      &#8211; \/opt\/homeassistant\/config:\/config<br \/>\n    network_mode: host<\/textarea>\n    <\/div>\n<p>    <button id=\"lint-docker-btn\" class=\"button\" style=\"background: var(--accent, #2ba6df); color: #0b1114; border: none; padding: 12px 24px; border-radius: 6px; font-weight: 700; cursor: pointer; margin-bottom: 20px;\">Lint Edge Configuration<\/button><\/p>\n<div id=\"rpi-docker-results\"><\/div>\n<\/div>\n<p><script>\ndocument.getElementById(\"lint-docker-btn\").addEventListener(\"click\", () => {\n    const input = document.getElementById(\"rpi-docker-input\").value;\n    const checks = [\n        { label: \"Restart Policy Defined (unless-stopped\/always)\", passed: \/restart:\\s*(unless-stopped|always)\/i.test(input) },\n        { label: \"Timezone Environment Configured (TZ=)\", passed: \/TZ=\/i.test(input) || \/\\\/etc\\\/localtime\/i.test(input) },\n        { label: \"Explicit Volume Mapping Defined\", passed: \/volumes:\/i.test(input) },\n        { label: \"Specific Image Tag Used (No :latest usage)\", passed: !\/:latest\/i.test(input) }\n    ];<\/p>\n<p>    const passedCount = checks.filter(c => c.passed).length;\n    const badge = passedCount === checks.length \n        ? \"<span style='background:#1a4731; color:#51cf66; padding:4px 8px; border-radius:4px; font-weight:bold;'>EDGE READY<\/span>\" \n        : \"<span style='background:#471a1a; color:#ff6b6b; padding:4px 8px; border-radius:4px; font-weight:bold;'>OPTIMIZATION NEEDED<\/span>\";<\/p>\n<p>    const rows = checks.map(c => [\n        \"<\/p>\n<tr style='border-bottom:1px solid var(--border);'>\",\n        \"  <\/p>\n<td style='padding:10px; color:var(--text-primary);'>\" + c.label + \"<\/td>\n<p>\",\n        \"  <\/p>\n<td style='padding:10px; color:\" + (c.passed ? \"#51cf66\" : \"#ff6b6b\") + \"; font-weight:bold;'>\" + (c.passed ? \"PASSED\" : \"MISSING\") + \"<\/td>\n<p>\",\n        \"<\/tr>\n<p>\"\n    ].join(\"\"));<\/p>\n<p>    document.getElementById(\"rpi-docker-results\").innerHTML = [\n        \"<\/p>\n<div style='background:var(--bg-body); padding:15px; border-radius:6px; border:1px solid var(--border); margin-bottom:15px; display:flex; justify-content:space-between; align-items:center;'>\",\n        \"  <strong style='color:var(--text-primary);'>Audit Score: \" + passedCount + \" \/ \" + checks.length + \" Checks<\/strong>\",\n        \"  \" + badge,\n        \"<\/div>\n<p>\",\n        \"<\/p>\n<table style='width:100%; border-collapse:collapse; background:var(--bg-body); border-radius:6px; overflow:hidden;'>\",\n        \"  <\/p>\n<tbody>\" + rows.join(\"\") + \"<\/tbody>\n<p>\",\n        \"<\/table>\n<p>\"\n    ].join(\"\");\n});\ndocument.getElementById(\"lint-docker-btn\").click();\n<\/script><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Lint Docker Compose configurations against edge server best practices including timezones and restart rules.<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":38,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-tool-base.php","meta":{"footnotes":""},"class_list":["post-8811","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.1 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Raspberry Pi Docker Compose Edge Linter - Lukas Wojcik - Blog<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/raspberry-pi-docker-compose-edge-linter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Raspberry Pi Docker Compose Edge Linter - Lukas Wojcik - Blog\" \/>\n<meta property=\"og:description\" content=\"Lint Docker Compose configurations against edge server best practices including timezones and restart rules.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/raspberry-pi-docker-compose-edge-linter\/\" \/>\n<meta property=\"og:site_name\" content=\"Lukas Wojcik - Blog\" \/>\n<meta property=\"article:modified_time\" content=\"2026-08-05T13:36:38+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/toolbox\\\/raspberry-pi-docker-compose-edge-linter\\\/\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/toolbox\\\/raspberry-pi-docker-compose-edge-linter\\\/\",\"name\":\"Raspberry Pi Docker Compose Edge Linter - Lukas Wojcik - Blog\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\"},\"datePublished\":\"2026-08-05T12:01:35+00:00\",\"dateModified\":\"2026-08-05T13:36:38+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/toolbox\\\/raspberry-pi-docker-compose-edge-linter\\\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/toolbox\\\/raspberry-pi-docker-compose-edge-linter\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/toolbox\\\/raspberry-pi-docker-compose-edge-linter\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Toolbox\",\"item\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/en\\\/toolbox\\\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Raspberry Pi Docker Compose Edge Linter\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/\",\"name\":\"Lukas Wojcik - Blog\",\"description\":\"\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":[\"Person\",\"Organization\"],\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/#\\\/schema\\\/person\\\/895f7604f9b6b71aad9bba33af28d0f9\",\"name\":\"luky\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"url\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"contentUrl\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\",\"width\":424,\"height\":636,\"caption\":\"luky\"},\"logo\":{\"@id\":\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\\\/wp-content\\\/uploads\\\/2026\\\/07\\\/lw-x2.jpg\"},\"sameAs\":[\"https:\\\/\\\/www.lukaswojcik.com\\\/blog\"]}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Raspberry Pi Docker Compose Edge Linter - Lukas Wojcik - Blog","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/raspberry-pi-docker-compose-edge-linter\/","og_locale":"en_US","og_type":"article","og_title":"Raspberry Pi Docker Compose Edge Linter - Lukas Wojcik - Blog","og_description":"Lint Docker Compose configurations against edge server best practices including timezones and restart rules.","og_url":"https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/raspberry-pi-docker-compose-edge-linter\/","og_site_name":"Lukas Wojcik - Blog","article_modified_time":"2026-08-05T13:36:38+00:00","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/raspberry-pi-docker-compose-edge-linter\/","url":"https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/raspberry-pi-docker-compose-edge-linter\/","name":"Raspberry Pi Docker Compose Edge Linter - Lukas Wojcik - Blog","isPartOf":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#website"},"datePublished":"2026-08-05T12:01:35+00:00","dateModified":"2026-08-05T13:36:38+00:00","breadcrumb":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/raspberry-pi-docker-compose-edge-linter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/raspberry-pi-docker-compose-edge-linter\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/raspberry-pi-docker-compose-edge-linter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.lukaswojcik.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Toolbox","item":"https:\/\/www.lukaswojcik.com\/blog\/en\/toolbox\/"},{"@type":"ListItem","position":3,"name":"Raspberry Pi Docker Compose Edge Linter"}]},{"@type":"WebSite","@id":"https:\/\/www.lukaswojcik.com\/blog\/#website","url":"https:\/\/www.lukaswojcik.com\/blog\/","name":"Lukas Wojcik - Blog","description":"","publisher":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.lukaswojcik.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":["Person","Organization"],"@id":"https:\/\/www.lukaswojcik.com\/blog\/#\/schema\/person\/895f7604f9b6b71aad9bba33af28d0f9","name":"luky","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","url":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","contentUrl":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg","width":424,"height":636,"caption":"luky"},"logo":{"@id":"https:\/\/www.lukaswojcik.com\/blog\/wp-content\/uploads\/2026\/07\/lw-x2.jpg"},"sameAs":["https:\/\/www.lukaswojcik.com\/blog"]}]}},"_links":{"self":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/pages\/8811","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/comments?post=8811"}],"version-history":[{"count":0,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/pages\/8811\/revisions"}],"up":[{"embeddable":true,"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/pages\/38"}],"wp:attachment":[{"href":"https:\/\/www.lukaswojcik.com\/blog\/wp-json\/wp\/v2\/media?parent=8811"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}