minsql
minsql copied to clipboard
mc binary doesn't create bucket in docker-compose example
Following the documentation on the minsql github repo page, the example doesn't work. The mc container is supposed to create a minsql-meta bucket, and the output from the conainer is that it succeeds, but no bucket is actually created.
As per the docker-compose.yml below the bucket minio/minsql-meta should be created. After the mc container has run no bucket can be found in the local data directory or seen in the web ui.
` version: '2'
services:
minio: image: minio/minio volumes:
- ./data:/data environment: MINIO_ACCESS_KEY: minio MINIO_SECRET_KEY: minio123 command: server /data ports:
- 9000:9000
mc: image: minio/mc depends_on:
- minio entrypoint: > /bin/sh -c " echo /usr/bin/mc config host add minio http://minio:9000 minio minio123; /usr/bin/mc mb minio/minsql-meta;"
minsql: image: minio/minsql depends_on:
- minio
- mc ports:
- "9999:9999" environment: MINSQL_METABUCKET_NAME: minsql-meta MINSQL_METABUCKET_ENDPOINT: http://minio:9000 MINSQL_ACCESS_KEY: minio MINSQL_SECRET_KEY: minio123
volumes: data: `
Thanks for reporting @tommyalatalo we'll take a look