mirror of
https://github.com/langflow-ai/langflow.git
synced 2026-07-23 21:48:22 +08:00
* fix: pin postgres image to bookworm in docker_example to prevent collation mismatch
The postgres:16 tag silently moved its base from Debian Bookworm
(glibc 2.36) to Trixie (glibc 2.41), causing a recurring collation
version mismatch warning on existing langflow-postgres volumes.
Pin to postgres:16-bookworm in both docker-compose files and update
the README so existing data volumes keep matching the OS locale data.
Refs: https://github.com/langflow-ai/langflow/issues/9608
* docs: pin postgres image to bookworm in current docs compose snippets
Mirror the docker_example pin in the four current docs that publish
copyable Compose snippets pairing postgres:16 with a persistent
langflow-postgres volume. Prevents the same Bookworm-to-Trixie
collation version mismatch warning when users follow docs instead
of docker_example.
Versioned historical docs are left as-is.
Refs: https://github.com/langflow-ai/langflow/issues/9608
* fix: switch postgres pin from bookworm to trixie for OS consistency
Aligns the pinned postgres base with the langflow runtime image, which
moved to Debian Trixie in #12990. Keeping postgres on bookworm would
have diverged the stack and locked the database to an aging glibc that
will receive fewer security backports as bookworm ages into oldstable.
The pin itself still solves the original bug — postgres:16 cannot
silently roll its OS underneath an existing volume.
Document the one-time REFRESH COLLATION VERSION step for users
upgrading from a bookworm-initialized volume in docker_example/README.md.
Refs: https://github.com/langflow-ai/langflow/issues/9608
(cherry picked from commit 7504eb4c72)
35 lines
1.0 KiB
YAML
35 lines
1.0 KiB
YAML
version: "3.8"
|
|
|
|
services:
|
|
langflow:
|
|
image: langflowai/langflow:1.0-alpha
|
|
ports:
|
|
- "7860:7860"
|
|
depends_on:
|
|
- postgres
|
|
environment:
|
|
- LANGFLOW_DATABASE_URL=postgresql://langflow:langflow@postgres:5432/langflow
|
|
# This variable defines where the logs, file storage, monitor data and secret keys are stored.
|
|
- LANGFLOW_CONFIG_DIR=app/langflow
|
|
volumes:
|
|
- langflow-data:/app/langflow
|
|
|
|
postgres:
|
|
# Pinned to a specific Debian base (trixie) so the postgres:16 tag does not
|
|
# silently roll its OS underneath us — that roll causes a glibc collation
|
|
# version mismatch warning on existing volumes. Matches the langflow image
|
|
# base. See https://github.com/langflow-ai/langflow/issues/9608
|
|
image: postgres:16-trixie
|
|
environment:
|
|
POSTGRES_USER: langflow
|
|
POSTGRES_PASSWORD: langflow
|
|
POSTGRES_DB: langflow
|
|
ports:
|
|
- "5432:5432"
|
|
volumes:
|
|
- langflow-postgres:/var/lib/postgresql/data
|
|
|
|
volumes:
|
|
langflow-postgres:
|
|
langflow-data:
|