-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcompose.azurite.yml
More file actions
27 lines (26 loc) · 1.04 KB
/
compose.azurite.yml
File metadata and controls
27 lines (26 loc) · 1.04 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
services:
azurite:
image: mcr.microsoft.com/azure-storage/azurite
healthcheck:
test: nc 127.0.0.1 10000 -z
interval: 1s
retries: 30
command: azurite-blob --skipApiVersionCheck --blobHost 0.0.0.0
ports:
- "10000"
azure-cli:
image: mcr.microsoft.com/azure-cli:latest
# create contents container and allow CORS in order for vault bundle
# downloads to not be blocked by browsers
command: /bin/sh -c "az storage container create --name contents &&
az storage cors add --methods GET --origins '*' --services b &&
tail -f /dev/null"
depends_on:
azurite:
condition: service_healthy
environment:
# https://github.com/Azure/Azurite/blob/main/README.md#usage-with-azure-storage-sdks-or-tools
AZURE_STORAGE_CONNECTION_STRING: "DefaultEndpointsProtocol=http;\
AccountName=devstoreaccount1;\
AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;\
BlobEndpoint=http://azurite:10000/devstoreaccount1;"