forked from carbonplan/icechunk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.yaml
More file actions
65 lines (60 loc) · 1.73 KB
/
compose.yaml
File metadata and controls
65 lines (60 loc) · 1.73 KB
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
volumes:
rustfs_data:
azurite-data:
services:
rustfs:
container_name: icechunk_rustfs
image: rustfs/rustfs:1.0.0-alpha.83
entrypoint: |
/bin/sh -c '
for bucket in testbucket
do
echo creating bucket "$$bucket";
mkdir -p /data/"$$bucket"
done;
rustfs --access-key minio123 --secret-key minio123 --console-enable /data
'
volumes:
- rustfs_data:/data
ports:
- '9000:9000'
- '9001:9001'
toxiproxy:
container_name: icechunk_toxiproxy
image: ghcr.io/shopify/toxiproxy
ports:
- '8474:8474'
- '9002:9002'
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
'