Hacktoberfest 2026:メンテナが10月に向けて印を付けた、オープンで初心者向けの issue。 Hacktoberfest の issue を見る

Doc/Sample improvement: cron via docker-compose needs Redis-environment as well

オープン
#2,469 コメント 2 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

評価

難易度
1/5
見積もり時間
1時間未満
初心者へのやさしさ
50/100
issue の種類
ドキュメント
明瞭さ
明確に書かれている
活発さ
停滞
技術スタック
docker, docker-compose, redis

調査の方向性

.examples/docker-compose/with-nginx-proxy/postgres/apache/compose.yaml を41行目付近で開き、app サービスと cron サービスの環境変数を比較します。cron が REDIS_HOST 変数と REDIS_PORT 変数を受け取るように例を更新し、Compose 設定が引き続き有効であることを確認します。

索引モデルが issue の本文から書いたものです。

説明

0. Needs triage bug

This had me scratching my head a bit: I've set REDIS_HOST for the app:-target in the Apache docker-compose-file, and every five minutes (when cron comes around) I would get Redis server went away stains in the log.

It turns out that of course the solution is to pass the REDIS_{HOST, PORT} environment variables also to the cron:-target, e.g. in https://github.com/nextcloud/docker/blob/4cf9a20fdf5740e92e3b213a52d463c88449559a/.examples/docker-compose/with-nginx-proxy/postgres/apache/compose.yaml#L41.

I suggest to add the REDIS_*-variables to the cron:-section in the example template (possibly elsewhere?) to remind folks to do this.

[Or I misdiagnosed the issue, and I have some other problem – I had assumed the whole time that the cron-container would just trigger tasks in the running instance, but apparently that wasn't the case.]

主要言語
Shell
スター
7.4k
フォーク
1.9k
PR マージ指標
30日以内にマージされた PR はありません

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

nextcloud/docker のほかの issue

nextcloud/docker の issue をすべて見る

似ている issue

Shell/Bash の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。