diff --git a/Makefile b/Makefile index 6cd2d5c..3d477fb 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ prepare: mkdir -p data/databend up: prepare - docker compose up --quiet-pull -d databend --wait + docker-compose -f docker-compose.yaml up --quiet-pull -d databend --wait curl -u root: -XPOST "http://localhost:8000/v1/query" -H 'Content-Type: application/json' -d '{"sql": "select version()", "pagination": { "wait_time_secs": 10}}' start: up diff --git a/docker-compose.yaml b/docker-compose.yaml new file mode 100644 index 0000000..086dc1f --- /dev/null +++ b/docker-compose.yaml @@ -0,0 +1,24 @@ +services: + minio: + image: docker.io/minio/minio + command: server /data + network_mode: "host" + volumes: + - ./data:/data + databend: + image: docker.io/datafuselabs/databend:nightly + environment: + - QUERY_STORAGE_TYPE=s3 + - QUERY_DATABEND_ENTERPRISE_LICENSE + - AWS_S3_ENDPOINT=http://localhost:9000 + - AWS_ACCESS_KEY_ID=minioadmin + - AWS_SECRET_ACCESS_KEY=minioadmin + network_mode: "host" + depends_on: + - minio + healthcheck: + test: "curl -f localhost:8080/v1/health || exit 1" + interval: 2s + retries: 10 + start_period: 2s + timeout: 1s