-
Notifications
You must be signed in to change notification settings - Fork 0
/
compose.vault-azure.yml
38 lines (36 loc) · 1.29 KB
/
compose.vault-azure.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
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 --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;"
swh-vault:
depends_on:
azurite:
condition: service_healthy
azure-cli:
condition: service_started
docker-helper:
condition: service_healthy
volumes:
- "./conf/vault-azure.yml:/srv/softwareheritage/config.yml.in:ro"