{"id":197,"date":"2025-06-01T09:55:53","date_gmt":"2025-06-01T00:55:53","guid":{"rendered":"https:\/\/noisette.espresso.earth\/wordpress\/?p=197"},"modified":"2025-07-10T00:02:55","modified_gmt":"2025-07-09T15:02:55","slug":"dockerdify","status":"publish","type":"post","link":"https:\/\/blog.espresso.earth\/index.php\/2025\/06\/01\/dockerdify\/","title":{"rendered":"Docker\u306b\u3088\u308bDIfy\u306e\u5c0e\u5165"},"content":{"rendered":"\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h2 class=\"wp-block-heading\">Raspberry Pi 5 \u306b Docker \u3068 Docker Compose \u3092\u4f7f\u3063\u3066 DIfy \u3092\u5c0e\u5165\u3059\u308b\u65b9\u6cd5<\/h2>\n\n\n\n<p>\u3053\u306e\u8a18\u4e8b\u3067\u306f\u3001Raspberry Pi 5 \u4e0a\u3067 Docker \u3068 Docker Compose \u3092\u4f7f\u7528\u3057\u3066 DIfy \u3092\u5c0e\u5165\u3059\u308b\u624b\u9806\u3092\u89e3\u8aac\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u524d\u63d0\u6761\u4ef6<\/h3>\n\n\n\n<p>\u4ee5\u4e0b\u306e\u6761\u4ef6\u3092\u6e80\u305f\u3057\u3066\u3044\u308b\u3053\u3068\u3092\u524d\u63d0\u3068\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Raspberry Pi 5 \u304c\u52d5\u4f5c\u3057\u3066\u3044\u308b\u3053\u3068<\/li>\n\n\n\n<li>Apache \u304c\u3059\u3067\u306b\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u3053\u3068<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">1. Docker \u3068 Docker Compose \u306e\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb<\/h3>\n\n\n\n<p>\u307e\u305a\u306f\u3001Docker \u304a\u3088\u3073 Docker Compose \u304c\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker --version\ndocker-compose --version\n<\/code><\/pre>\n\n\n\n<p>\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3055\u308c\u3066\u3044\u306a\u3044\u5834\u5408\u306f\u3001\u6b21\u306e\u30b3\u30de\u30f3\u30c9\u3067\u30a4\u30f3\u30b9\u30c8\u30fc\u30eb\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>sudo apt update\nsudo apt install docker.io\nsudo apt install docker-compose\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">2. DIfy \u306e Dockerfile \u3092\u53d6\u5f97\u3059\u308b<\/h3>\n\n\n\n<p>\u6b21\u306b\u3001DIfy \u306e Dockerfile \u3092\u53d6\u5f97\u3057\u307e\u3059\u3002DIfy \u306e\u30ea\u30dd\u30b8\u30c8\u30ea\u3092\u30af\u30ed\u30fc\u30f3\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>git clone https:\/\/github.com\/your_username\/DIfy.git\ncd DIfy\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">3. Docker Compose \u306e\u8a2d\u5b9a<\/h3>\n\n\n\n<p>\u30d7\u30ed\u30b8\u30a7\u30af\u30c8\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u5185\u306b <code>docker-compose.yml<\/code> \u30d5\u30a1\u30a4\u30eb\u3092\u4f5c\u6210\u3057\u3001\u4ee5\u4e0b\u306e\u5185\u5bb9\u3092\u8a18\u8ff0\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>version: '2.4'\n\nservices:\n  dify:\n    image: your_image_name # \u4f7f\u7528\u3059\u308bDocker\u30a4\u30e1\u30fc\u30b8\u540d\u3092\u6307\u5b9a\n    ports:\n      - \"80:80\"\n    volumes:\n      - .\/your_local_directory:\/var\/www\/html # \u5fc5\u8981\u306b\u5fdc\u3058\u3066\u30d1\u30b9\u3092\u8abf\u6574\n<\/code><\/pre>\n\n\n\n<p>\u203b <code>your_image_name<\/code> \u3068 <code>your_local_directory<\/code> \u306f\u3054\u81ea\u8eab\u306e\u74b0\u5883\u306b\u5408\u308f\u305b\u3066\u5909\u66f4\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">4. DIfy \u306e\u30d3\u30eb\u30c9\u3068\u8d77\u52d5<\/h3>\n\n\n\n<p>\u3059\u3079\u3066\u306e\u8a2d\u5b9a\u304c\u5b8c\u4e86\u3057\u305f\u3089\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067 DIfy \u3092\u30d3\u30eb\u30c9\u30fb\u8d77\u52d5\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker-compose up -d\n<\/code><\/pre>\n\n\n\n<p>\u8d77\u52d5\u5f8c\u3001\u4ee5\u4e0b\u306e\u30b3\u30de\u30f3\u30c9\u3067\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u3066\u3044\u308b\u304b\u78ba\u8a8d\u3067\u304d\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>docker-compose ps\n<\/code><\/pre>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">5. \u52d5\u4f5c\u78ba\u8a8d<\/h3>\n\n\n\n<p>\u30d6\u30e9\u30a6\u30b6\u3092\u958b\u304d\u3001\u4ee5\u4e0b\u306eURL\u306b\u30a2\u30af\u30bb\u30b9\u3057\u3066 DIfy \u306e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308b\u304b\u78ba\u8a8d\u3057\u307e\u3059\u3002<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>http:&#47;&#47;&lt;Raspberry_Pi\u306eIP\u30a2\u30c9\u30ec\u30b9&gt;\n<\/code><\/pre>\n\n\n\n<p>DIfy \u306e\u753b\u9762\u304c\u8868\u793a\u3055\u308c\u308c\u3070\u3001\u5c0e\u5165\u306f\u6210\u529f\u3067\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u30c8\u30e9\u30d6\u30eb\u30b7\u30e5\u30fc\u30c6\u30a3\u30f3\u30b0<\/h3>\n\n\n\n<p>DIfy \u304c\u6b63\u5e38\u306b\u52d5\u4f5c\u3057\u306a\u3044\u5834\u5408\u306f\u3001\u4ee5\u4e0b\u306e\u70b9\u3092\u78ba\u8a8d\u3057\u3066\u304f\u3060\u3055\u3044\u3002<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li>Docker \u30c7\u30fc\u30e2\u30f3\u304c\u8d77\u52d5\u3057\u3066\u3044\u308b\u304b<\/li>\n\n\n\n<li>\u4f7f\u7528\u30dd\u30fc\u30c8\u304c\u4ed6\u306e\u30a2\u30d7\u30ea\u30b1\u30fc\u30b7\u30e7\u30f3\u3068\u7af6\u5408\u3057\u3066\u3044\u306a\u3044\u304b<\/li>\n<\/ul>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">\u307e\u3068\u3081<\/h3>\n\n\n\n<p>Raspberry Pi 5 \u4e0a\u306b Docker \u3068 Docker Compose \u3092\u4f7f\u3063\u3066 DIfy \u3092\u5c0e\u5165\u3059\u308b\u3053\u3068\u3067\u3001\u74b0\u5883\u69cb\u7bc9\u306e\u624b\u9593\u3092\u5927\u5e45\u306b\u8efd\u6e1b\u3067\u304d\u307e\u3059\u3002\u30b7\u30b9\u30c6\u30e0\u306e\u5206\u96e2\u3068\u518d\u5229\u7528\u6027\u3082\u9ad8\u307e\u308a\u3001\u958b\u767a\u30fb\u904b\u7528\u306e\u52b9\u7387\u5316\u306b\u3082\u3064\u306a\u304c\u308a\u307e\u3059\u3002<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Raspberry Pi 5 \u306b Doc [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":1437,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[34,37,8,24,12,14,10,9],"tags":[],"class_list":["post-197","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-dify","category-docker","category-it","category-web","category-idea","category-infrastructure","category-tools","category-business"],"_links":{"self":[{"href":"https:\/\/blog.espresso.earth\/index.php\/wp-json\/wp\/v2\/posts\/197","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/blog.espresso.earth\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/blog.espresso.earth\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/blog.espresso.earth\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/blog.espresso.earth\/index.php\/wp-json\/wp\/v2\/comments?post=197"}],"version-history":[{"count":16,"href":"https:\/\/blog.espresso.earth\/index.php\/wp-json\/wp\/v2\/posts\/197\/revisions"}],"predecessor-version":[{"id":1207,"href":"https:\/\/blog.espresso.earth\/index.php\/wp-json\/wp\/v2\/posts\/197\/revisions\/1207"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/blog.espresso.earth\/index.php\/wp-json\/wp\/v2\/media\/1437"}],"wp:attachment":[{"href":"https:\/\/blog.espresso.earth\/index.php\/wp-json\/wp\/v2\/media?parent=197"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/blog.espresso.earth\/index.php\/wp-json\/wp\/v2\/categories?post=197"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/blog.espresso.earth\/index.php\/wp-json\/wp\/v2\/tags?post=197"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}