-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
105 lines (100 loc) · 2.85 KB
/
docker-compose.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
version: '3.8'
services:
server:
image: quay.io/hansetag/iceberg-catalog:latest
environment:
- ICEBERG_REST__BASE_URI=http://localhost:8080/catalog/
- ICEBERG_REST__PG_ENCRYPTION_KEY=This-is-NOT-Secure!
- ICEBERG_REST__PG_DATABASE_URL_READ=postgresql://postgres:postgres@db:5432/postgres
- ICEBERG_REST__PG_DATABASE_URL_WRITE=postgresql://postgres:postgres@db:5432/postgres
- ICEBERG_REST__DEFAULT_PROJECT_ID=00000000-0000-0000-0000-000000000000
- RUST_LOG=info
entrypoint: [ "./iceberg-catalog", "serve" ]
healthcheck:
test: [ "CMD", "/home/nonroot/iceberg-catalog", "healthcheck" ]
interval: 1s
timeout: 10s
retries: 3
start_period: 3s
depends_on:
migrate:
condition: service_completed_successfully
db:
condition: service_healthy
minio:
condition: service_healthy
networks:
iceberg_net:
ports:
- "8080:8080"
migrate:
image: quay.io/hansetag/iceberg-catalog:latest
environment:
- ICEBERG_REST__PG_ENCRYPTION_KEY=This-is-NOT-Secure!
- ICEBERG_REST__PG_DATABASE_URL_READ=postgresql://postgres:postgres@db:5432/postgres
- ICEBERG_REST__PG_DATABASE_URL_WRITE=postgresql://postgres:postgres@db:5432/postgres
- RUST_LOG=info
restart: "no"
entrypoint: [ "/home/nonroot/iceberg-catalog", "migrate" ]
depends_on:
db:
condition: service_healthy
networks:
iceberg_net:
initialproject:
image: curlimages/curl
depends_on:
server:
condition: service_healthy
restart: "no"
command:
- -w
- "%{http_code}"
- "-X"
- "POST"
- "-v"
- "http://server:8080/management/v1/warehouse"
- "-H"
- "Content-Type: application/json"
- "--data"
- "@create-default-warehouse.json"
- "-o"
- "/dev/null"
volumes:
- ./create-default-warehouse.json:/home/curl_user/create-default-warehouse.json
networks:
iceberg_net:
db:
image: bitnami/postgresql:15
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=postgres
- PGUSER=postgres
healthcheck:
test: [ "CMD-SHELL", "pg_isready -U postgres -p 5432 -d postgres" ]
interval: 2s
timeout: 10s
retries: 2
start_period: 10s
networks:
iceberg_net:
minio:
image: bitnami/minio:latest
environment:
- MINIO_ROOT_USER=minio-root-user
- MINIO_ROOT_PASSWORD=minio-root-password
- MINIO_API_PORT_NUMBER=9000
- MINIO_CONSOLE_PORT_NUMBER=9001
- MINIO_SCHEME=http
- MINIO_DEFAULT_BUCKETS=examples
healthcheck:
test: [ "CMD", "mc", "ls", "local", "|", "grep", "examples" ]
interval: 2s
timeout: 10s
retries: 2
start_period: 15s
networks:
iceberg_net:
networks:
iceberg_net: