最終更新:2025-11-28 (金) 15:05:14 (13d)
Dify/Docker
https://github.com/langgenius/dify/blob/main/docker/README.md
https://docs.dify.ai/en/self-host/quick-start/docker-compose
プロジェクト名がdockerになる理由
- Compose はネットワークを作るとき、プロジェクト名をベースに命名します。
- プロジェクト名は次の優先順位で決まります:
- docker-compose.yml があるディレクトリ名
- docker compose -p <名前> で明示指定したプロジェクト名
docker compose up -dで起動するコンテナ
ポート 設定 docker-sandbox-1 docker-redis-1 docker-db-1 docker-ssrf_proxy-1 docker-web-1 3000 web/Dockerfile docker-weaviate-1 docker-api-1 docker-worker_beat-1 docker-worker-1 docker-plugin_daemon-1 docker-nginx-1 docker/nginx/conf.d/default.conf.template
データ
- volumesディレクトリ以下に永続化されているぽい
ー
https://github.com/langgenius/dify/tree/main/docker/volumes
- volumes/app
- volumes/certbot
- volumes/db
- volumes/myscale
- volumes/oceanbase
- volumes/opensearch
- volumes/plugin_daemon
- volumes/redis
- volumes/sandbox
- volumes/weaviate
更新
https://docs.dify.ai/en/self-host/quick-start/docker-compose#upgrade-dify
cd dify/docker docker compose down git pull origin main docker compose pull docker compose up -d
エラー
- worker_beat-1 | ERROR [flask_migrate] Error: Can't locate revision identified by '{hash}'
- 2.0のbetaからmainにダウングレードしようとしたことになってエラーになった模様
- [error] failed to initialize database, got error failed to connect to host=db user=postgres database=dify_plugin: hostname resolving error (lookup db on 127.0.0.11:53: server misbehaving)
- MySQL対応でDBの設定項目が変わって.envを更新しないといけなくなったぽい

