docker-compose ignoring depends_on and entrypoint on server restart
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- 説明が足りない
- 活発さ
- 停滞
- 技術スタック
- docker, docker-compose, shell
- 領域
- devops, infrastructure
調査の方向性
まず Docker Compose の定義と、言及されている wait-for-it.sh エントリポイントを調査し、次に docker compose up、docker compose up graylog、サーバーの再起動という一連の操作を再現します。Graylog、MongoDB、OpenSearch について、再起動ポリシー、depends_on の動作、エントリポイントの実行を比較します。再起動時の動作が説明され、依存関係の起動時に期待される動作が修正されるか、明確に文書化されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I've noticed that when restarting my server Docker will restart the graylog container but mongodb or open-search.
I'm also aware these examples are for testing, and previously they were changed to be restart: "on failure" rather than always, but I think it's still not expected behaviour.
But this may not be a graylog or even docker-compose issue - please correct me where Im wrong:
Current behaviour:
docker compose up: all containers start
docker compose up graylog: all containers start
restart server: graylog starts, other containers don't
Expected behaviour:
restart server: all containers previously running start, and graylog waits for mongodb and opensearch to be ready.
There are 2 failsafe's in the docker-compose for making sure the requisite services are started before graylog starts:
- depends_on
- entrypoint wait-for-it.sh waits for opensearch to be available at opensearch:9200
re. 1 - apparently docker doesn't know about docker-compose variables, and so depends_on is ignored - it just restarts previously running containers. Not ideal, but regardless in this instance it only restarts graylog.
re. 2 - shouldn't the wait-for-it.sh script fire even when restarting the container after a server restart?
Any ideas?
- 主要言語
- Shell
- スター
- 590
- フォーク
- 160
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
Graylog2/docker-compose のほかの issue
-
triaged
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
Graylog2/docker-compose#101 ·
-
triaged
難易度 1/5 1時間未満 初心者へのやさしさ 45/100
Graylog2/docker-compose#66 · コメント 1 件 · リアクション 1 件 ·
-
triaged
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
Graylog2/docker-compose#61 · コメント 6 件 ·
-
needs-input triaged
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
Graylog2/docker-compose#59 · コメント 1 件 ·
-
documentation triaged
難易度 2/5 1〜3時間 初心者へのやさしさ 35/100
Graylog2/docker-compose#49 · コメント 10 件 ·
Graylog2/docker-compose の issue をすべて見る
似ている issue
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
pearu/agent-sandbox#156 ·
メンテナーはふだん 1 日以内に返信
-
area/documentation squad/marvin
難易度 1/5 1時間未満 初心者へのやさしさ 90/100
rancher/stackstate-product-docs#443 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
getumbrel/umbrel-apps#6142 ·
メンテナーはふだん 2 日以内に返信
-
triage/confirmed
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
agentscope-ai/agentscope#3030 ·
メンテナーはふだん 1 日以内に返信