docker-compose.yml has no restart policy, so a host reboot leaves self-hosted installs down
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 1/5
- Tiempo estimado
- Menos de una hora
- Aptitud para principiantes
- 83/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bien especificado
- Estado de actividad
- Activo
- Stack tecnológico
- docker, docker-compose, postgresql
- Área
- devops, infrastructure
Línea de trabajo
Abre docker-compose.yml en la raíz del repositorio y busca las definiciones de los servicios postgres, flagsmith y flagsmith-task-processor; ninguna de ellas tiene una clave restart:. Añade restart: unless-stopped a cada uno de los tres servicios y luego ejecuta docker compose config para confirmar que el archivo sigue parseándose y que la política aparece en los tres. Hecho significa que un docker compose up -d seguido de un reinicio de Docker/host devuelve los tres contenedores sin intervención manual. La fijación de las etiquetas de imagen y la actualización de Postgres en el mismo informe son asuntos separados y deberían dividirse en sus propios issues en lugar de incorporarse a este cambio.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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.
- Lenguaje dominante
- Python
- Estrellas
- 7.4k
- Forks
- 613
- Merge medio
- 1 d 11 h
- PR fusionados (30 d)
- 144
Preparar el entorno
- Incluye un Dockerfile o un archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de Flagsmith/flagsmith
-
Action links render in the wrong colour in dark modePosiblemente ocupada @manueldezman la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 88/100
Flagsmith/flagsmith#9082 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Fix Button Alignment in SDK Installation SectionPosiblemente ocupada @manueldezman la tomó hoy. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Flagsmith/flagsmith#9056 · 2 comentarios ·
Los mantenedores suelen responder en 1 día
-
Cloud Python warehouse snippet omits the import needed by its short-lived-job guidancePosiblemente ocupada @jcd1991 la tomó hace 1 día. Abierto
Dificultad 1/5 Menos de una hora Aptitud para principiantes 75/100
Flagsmith/flagsmith#9045 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Expose whether an organisation is blocked for API usagePosiblemente ocupada @PiUnknown la tomó hace 35 días. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
Flagsmith/flagsmith#8773 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 75/100
Los mantenedores suelen responder en 1 día
Todos los issues de Flagsmith/flagsmith
Issues similares
-
flaky: test_fire_returns_thread_per_http_entry_on_head waits 5 s per dispatch worker on busy shardsAbiertostatus/accepted type/bug
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
microsoft/apm#5309 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
bug vector-store
Dificultad 2/5 1-3 horas Aptitud para principiantes 85/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
EverMind-AI/Raven#1413 ·
Los mantenedores suelen responder en 1 día
-
Tests: parallel pyinstallcheck runs oversubscribe the machine through nested TBB and BLAS poolsPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 86/100
ACCESS-NRI/containerised-environments-infra#143 ·
Los mantenedores suelen responder en 2 días