Skip to content
This repository was archived by the owner on Jul 26, 2020. It is now read-only.

mc binary doesn't create bucket in docker-compose example #129

Open
tommyalatalo opened this issue Aug 23, 2019 · 1 comment
Open

mc binary doesn't create bucket in docker-compose example #129

tommyalatalo opened this issue Aug 23, 2019 · 1 comment
Assignees

Comments

@tommyalatalo
Copy link

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:
`

@nitisht
Copy link

nitisht commented Aug 23, 2019

Thanks for reporting @tommyalatalo we'll take a look

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants