-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathcompose.yaml
61 lines (57 loc) · 1.67 KB
/
compose.yaml
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
volumes:
minio_data:
azurite-data:
services:
minio:
container_name: icechunk_minio
image: minio/minio
entrypoint: |
/bin/sh -c '
for bucket in testbucket externalbucket arraylake-repo-bucket
do
echo creating bucket "$$bucket";
mkdir -p /data/"$$bucket"
done;
/usr/bin/minio server --console-address ":9001" /data
'
environment:
- MINIO_ROOT_USER=minio123
- MINIO_ROOT_PASSWORD=minio123
volumes:
- minio_data:/data
ports:
- '9000:9000'
- '9001:9001'
azurite:
image: mcr.microsoft.com/azure-storage/azurite:3.33.0
container_name: azurite
hostname: azurite
healthcheck:
test: nc 127.0.0.1 10000 -z
interval: 1s
retries: 30
command: azurite --silent --blobHost 0.0.0.0 --queueHost 0.0.0.0 --tableHost 0.0.0.0 -l /workspace
ports:
- "10000:10000" # Blob
- "10001:10001" # Queue
- "10002:10002" # Table
volumes:
- azurite-data:/workspace
azurite-init:
image: mcr.microsoft.com/azure-storage/azurite:3.33.0
container_name: azurite_init
restart: "no"
depends_on:
azurite:
condition: service_healthy
restart: true
entrypoint: |
/bin/sh -c '
apk add --no-cache curl
for _ in {1..10}; do
if curl --silent --fail -XPUT "http://azurite:10000/devstoreaccount1/testcontainer?sv=2023-01-03&ss=btqf&srt=sco&spr=https%2Chttp&st=2025-01-06T14%3A53%3A30Z&se=2035-01-07T14%3A53%3A00Z&sp=rwdftlacup&sig=jclETGilOzONYp4Y0iK9SpVRLGyehaS5lg5booJ9VYA%3D&restype=container"; then
break
fi
sleep 1
done
'