Skip to main content

Use rustfs with Langfuse

· One min read

After MinIO stops its active development, I'm looking for its alternatives. rustfs is my choice.

The Docker compose file shown below starts rustfs. The bucket langfuse is created before starting the server. After starting the server, the admin console can be accessed on port 9091.

Docker compose file to start rustfs
services:
rustfs:
image: rustfs/rustfs:1.0.0-alpha.78
restart: always
entrypoint: sh
command: -c 'mkdir -p /data/langfuse && rustfs --address ":9000" --console-address ":9001" --console-enable /data'
environment:
RUSTFS_ACCESS_KEY: ${RUSTFS_ACCESS_KEY:-rustfsadmin}
RUSTFS_SECRET_KEY: ${RUSTFS_SECRET_KEY:-rustfsadmin}
ports:
- 9090:9000
- 127.0.0.1:9091:9001
volumes:
- langfuse_rustfs_data:/data
healthcheck:
test: ["CMD", "nc", "-z", "localhost", "9000"]
interval: 1s
timeout: 5s
retries: 5
start_period: 1s

volumes:
langfuse_rustfs_data:
driver: local

When starting Langfuse, use rustfs to replace MinIO. See here for a complete Docker compose setup.