|
| 1 | +version: '3.3' |
| 2 | + |
| 3 | +services: |
| 4 | + minio: |
| 5 | + container_name: minio |
| 6 | + hostname: minio-e2e |
| 7 | + image: quay.io/minio/minio |
| 8 | + network_mode: host |
| 9 | + restart: always |
| 10 | + command: |
| 11 | + - server |
| 12 | + - /data |
| 13 | + - "--console-address" |
| 14 | + - ":9001" |
| 15 | + healthcheck: |
| 16 | + test: [ "CMD", "curl", "-f", "http://localhost:9001" ] |
| 17 | + interval: 30s |
| 18 | + timeout: 10s |
| 19 | + retries: 5 |
| 20 | + prepare_buckets: |
| 21 | + container_name: minio-setup |
| 22 | + image: quay.io/minio/minio |
| 23 | + network_mode: host |
| 24 | + depends_on: |
| 25 | + minio: |
| 26 | + condition: service_healthy |
| 27 | + entrypoint: |
| 28 | + - "/bin/sh" |
| 29 | + - "-c" |
| 30 | + - | |
| 31 | + mc alias set e2e "http://localhost:9000" minioadmin minioadmin |
| 32 | + mc admin info e2e |
| 33 | + mc mb --ignore-existing e2e/tmp \ |
| 34 | + && mc mb --ignore-existing e2e/iceberg |
| 35 | + # https://github.com/databricks/docker-spark-iceberg/blob/main/docker-compose.yml |
| 36 | + lakekeeper: |
| 37 | + image: quay.io/lakekeeper/catalog:v0.9.2 |
| 38 | + network_mode: host |
| 39 | + environment: |
| 40 | + # - LAKEKEEPER__PG_ENCRYPTION_KEY=This-is-NOT-Secure! |
| 41 | + - LAKEKEEPER__LISTEN_PORT=20001 |
| 42 | + - LAKEKEEPER__METRICS_PORT=20002 |
| 43 | + - LAKEKEEPER__BASE_URI=http://localhost:20001 |
| 44 | + - ICEBERG_REST__BASE_URI=http://localhost:20001 |
| 45 | + - LAKEKEEPER__PG_DATABASE_URL_READ=postgresql://postgres:postgres@localhost:5432/postgres |
| 46 | + - LAKEKEEPER__PG_DATABASE_URL_WRITE=postgresql://postgres:postgres@localhost:5432/postgres |
| 47 | + - RUST_LOG=trace,axum=trace,sqlx=trace,iceberg-catalog=trace |
| 48 | + command: [ "serve" ] |
| 49 | + healthcheck: |
| 50 | + test: [ "CMD", "/home/nonroot/lakekeeper", "healthcheck" ] |
| 51 | + interval: 1s |
| 52 | + timeout: 10s |
| 53 | + retries: 30 |
| 54 | + depends_on: |
| 55 | + lakekeeper_migrate: |
| 56 | + condition: service_completed_successfully |
| 57 | + lakekeeper_db: |
| 58 | + condition: service_healthy |
| 59 | + minio: |
| 60 | + condition: service_healthy |
| 61 | + lakekeeper_migrate: |
| 62 | + image: quay.io/lakekeeper/catalog:v0.9.2 |
| 63 | + network_mode: host |
| 64 | + environment: |
| 65 | + # - LAKEKEEPER__PG_ENCRYPTION_KEY=This-is-NOT-Secure! |
| 66 | + - LAKEKEEPER__PG_DATABASE_URL_READ=postgresql://postgres:postgres@localhost:5432/postgres |
| 67 | + - LAKEKEEPER__PG_DATABASE_URL_WRITE=postgresql://postgres:postgres@localhost:5432/postgres |
| 68 | + - RUST_LOG=info |
| 69 | + restart: "no" |
| 70 | + command: [ "migrate" ] |
| 71 | + depends_on: |
| 72 | + lakekeeper_db: |
| 73 | + condition: service_healthy |
| 74 | + lakekeeper_prepare: |
| 75 | + image: python:3.11-slim-bookworm |
| 76 | + network_mode: host |
| 77 | + environment: |
| 78 | + CATALOG_HOST: localhost |
| 79 | + CATALOG_WAREHOUSE: demo |
| 80 | + depends_on: |
| 81 | + lakekeeper: |
| 82 | + condition: service_healthy |
| 83 | + restart: "no" |
| 84 | + volumes: |
| 85 | + - ./bootstrap-lk.py:/bootstrap-lk.py |
| 86 | + command: [ "/bin/sh", "-c", "pip install requests && python /bootstrap-lk.py" ] |
| 87 | + lakekeeper_db: |
| 88 | + image: postgres:16.3-bullseye |
| 89 | + network_mode: host |
| 90 | + restart: always |
| 91 | + environment: |
| 92 | + - POSTGRES_USERNAME=postgres |
| 93 | + - POSTGRES_PASSWORD=postgres |
| 94 | + - POSTGRES_HOST_AUTH_METHOD=trust |
| 95 | + - POSTGRES_DB=postgres |
| 96 | + - PGHOST=localhost |
| 97 | + - PGPORT=5432 |
| 98 | + healthcheck: |
| 99 | + test: [ "CMD-SHELL", "pg_isready -U postgres -p 5432 -d postgres" ] |
| 100 | + interval: 2s |
| 101 | + timeout: 30s |
| 102 | + retries: 8 |
0 commit comments