-
Notifications
You must be signed in to change notification settings - Fork 3.1k
docker compose up -d fails: minio not started but FILE_STORE_BACKEND defaults to s3 #9793
Copy link
Copy link
Open
Description
Description
Following the official local Docker deployment docs, running docker compose up -d causes the API server to crash immediately with:
botocore.exceptions.EndpointConnectionError: Could not connect to the endpoint URL: "http://minio:9000/onyx-file-store-bucket"
ERROR: Application startup failed. Exiting.
Root Cause
docker-compose.yml has a contradiction:
api_serverdefaults toFILE_STORE_BACKEND=s3(line 79), which requires minio- The
minioservice is gated behindprofiles: ["s3-filestore"](line 523), so it is never started by the defaultdocker compose up -dcommand
Even though minio is listed as required: false in the api_server depends_on, the API server still crashes when it cannot connect to the S3 endpoint at startup.
Steps to Reproduce
git clone --depth 1 https://github.com/onyx-dot-app/onyx.git
cd onyx/deployment/docker_compose
docker compose up -d
docker logs onyx-api_server-1Expected Behavior
The default docker compose up -d command should result in a working deployment as documented.
Workaround
docker compose --profile s3-filestore up -dSuggested Fix
Either:
- Remove
profiles: ["s3-filestore"]from the minio service so it starts by default, or - Change the default
FILE_STORE_BACKENDto a local/non-S3 option when minio is not running
Environment
- OS: Ubuntu 24.04.4 (VMware)
- Docker version: latest
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels