docker-compose.yml has no restart policy, so a host reboot leaves self-hosted installs down
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 1/5
- 预计耗时
- 1 小时以内
- 新手友好度
- 83/100
- Issue 类型
- 功能
- 描述清晰度
- 描述清楚
- 活跃度
- 活跃
- 技术栈
- docker, docker-compose, postgresql
- 领域
- devops, infrastructure
调研方向
打开仓库根目录下的 docker-compose.yml,找到 postgres、flagsmith 和 flagsmith-task-processor 的服务定义;它们都没有 restart: 键。给这三个服务分别添加 restart: unless-stopped,然后运行 docker compose config,确认文件仍能解析,并且该策略在三个服务上都出现。完成意味着执行 docker compose up -d 后再重启 Docker/主机,三个容器都能在无需手动干预的情况下恢复。同一份报告中的镜像标签固定和 Postgres 版本提升是彼此独立的问题,应拆分为各自的 issue,而不是并入本次更改。
由索引模型根据 Issue 内容生成。
描述
Following the self-hosting steps in the README on a clean Ubuntu 26.04 box (4 cores, 3.8 GB memory, Docker 29.7.2), the stack came up on the first try in about 8 minutes, nearly all of it download. Dashboard, /health and the task processor all returned 200.
Then I stopped and started the machine.
Postgres, flagsmith and flagsmith-task-processor all stayed down until I ran docker compose up -d by hand. None of the three services in docker-compose.yml sets a restart: policy, so Docker does not bring them back.
On a self-hosted customer's server this matters more than it does locally. A routine reboot for a kernel security update takes Flagsmith down, and it stays down until somebody notices and logs in. The flags keep serving from SDK cache for a while, which makes it quieter and therefore worse.
Suggested fix: restart: unless-stopped on postgres, flagsmith and flagsmith-task-processor.
Two smaller things I hit in the same install, happy to split them out if you would rather have separate issues:
-
The images are tagged
latest(docker.flagsmith.com/flagsmith/flagsmith:latest). The one I pulled had been built 13 hours earlier. Two customers who install a week apart end up on different versions, with no version to roll back to or to quote in a support ticket. Pinning a release tag in the compose file, plus a line on how to upgrade, would fix that. -
postgres:15.5-alpine is pinned to a November 2023 release. Later 15.x minors carry security fixes.
Happy to open a PR for the restart policy if that is useful.
- 主要语言
- Python
- 星标
- 7.4k
- 派生
- 613
- 平均合并
- 1 天 11 小时
- 30 天内合并 PR
- 144
环境准备
- 提供 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
Flagsmith/flagsmith 的其他 Issue
-
Action links render in the wrong colour in dark mode可能已有人在做 @manueldezman 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 88/100
Flagsmith/flagsmith#9082 · 1 条评论 ·
维护者通常 1 天内回复
-
Fix Button Alignment in SDK Installation Section可能已有人在做 @manueldezman 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
Flagsmith/flagsmith#9056 · 2 条评论 ·
维护者通常 1 天内回复
-
Cloud Python warehouse snippet omits the import needed by its short-lived-job guidance可能已有人在做 @jcd1991 于 1 天前认领。 未关闭
难度 1/5 1 小时以内 新手友好度 75/100
Flagsmith/flagsmith#9045 · 1 条评论 ·
维护者通常 1 天内回复
-
Expose whether an organisation is blocked for API usage可能已有人在做 @PiUnknown 于 35 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 62/100
Flagsmith/flagsmith#8773 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 75/100
维护者通常 1 天内回复
查看 Flagsmith/flagsmith 的全部 Issue
相似的 Issue
-
flaky: test_fire_returns_thread_per_http_entry_on_head waits 5 s per dispatch worker on busy shards未关闭status/accepted type/bug
难度 2/5 1-3 小时 新手友好度 74/100
维护者通常 1 天内回复
-
bug vector-store
难度 2/5 1-3 小时 新手友好度 85/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 74/100
EverMind-AI/Raven#1413 ·
维护者通常 1 天内回复
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS pools可能已有人在做 关联的 PR 仍在进行中或已合并。 未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 86/100
ACCESS-NRI/containerised-environments-infra#143 ·
维护者通常 2 天内回复