Skip to content

Commit 0eb8d2c

Browse files
committed
fix: update entrypoint script in docker-compose for Langfuse MinIO configuration
- Changed entrypoint syntax from '>' to '|' for better readability. - Replaced double dollar signs with single dollar signs for environment variable references in the MinIO setup commands. - Improved comments for clarity on MinIO's startup and configuration process.
1 parent 333bbf6 commit 0eb8d2c

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

docker-compose-langfuse.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -160,19 +160,19 @@ services:
160160
MINIO_ROOT_PASSWORD: ${LANGFUSE_S3_SECRET_ACCESS_KEY:-miniosecret}
161161
MINIO_BUCKET_NAME: ${LANGFUSE_S3_BUCKET:-langfuse}
162162
MINIO_UPDATE: off
163-
entrypoint: >
163+
entrypoint: |
164164
/bin/sh -c '
165165
isAlive() { mc ready local >/dev/null 2>&1; } # check if Minio is alive
166166
minio $0 "$@" --quiet & echo $! > /tmp/minio.pid # start Minio in the background
167167
until isAlive; do sleep 1; done # wait until Minio is alive
168168
echo "MinIO is ready. Proceeding with setup..."
169-
mc alias set myminio http://localhost:9000 $${MINIO_ROOT_USER} $${MINIO_ROOT_PASSWORD}
170-
mc mb myminio/$${MINIO_BUCKET_NAME}/ --ignore-existing # create test bucket
171-
mc anonymous set public myminio/$${MINIO_BUCKET_NAME} # make the test bucket public
172-
mc admin update myminio/$${MINIO_BUCKET_NAME} # update test bucket
169+
mc alias set myminio http://localhost:9000 $$MINIO_ROOT_USER $$MINIO_ROOT_PASSWORD
170+
mc mb myminio/$$MINIO_BUCKET_NAME/ --ignore-existing # create test bucket
171+
mc anonymous set public myminio/$$MINIO_BUCKET_NAME # make the test bucket public
172+
mc admin update myminio/$$MINIO_BUCKET_NAME # update test bucket
173173
echo "MinIO is configured. Trying to restart Minio..."
174-
kill -s INT $(cat /tmp/minio.pid) # try to stop Minio
175-
while [ -e "/proc/$(cat /tmp/minio.pid)" ]; do sleep 0.5; done # wait until Minio is stopped
174+
kill -s INT $$(cat /tmp/minio.pid) # try to stop Minio
175+
while [ -e "/proc/$$(cat /tmp/minio.pid)" ]; do sleep 0.5; done # wait until Minio is stopped
176176
rm /tmp/minio.pid # remove the pid file
177177
echo "MinIO is configured and running..."
178178
exec minio $0 "$@" # start Minio in the foreground

0 commit comments

Comments
 (0)