-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
76 lines (70 loc) · 2.39 KB
/
docker-compose.yaml
File metadata and controls
76 lines (70 loc) · 2.39 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
66
67
68
69
70
71
72
73
74
75
76
services:
service-bus:
hostname: servicebus
image: mcr.microsoft.com/azure-messaging/servicebus-emulator:latest
ports:
- "5672:5672" # AMQP port for Service Bus messaging
configs:
- source: servicebus
target: /ServiceBus_Emulator/ConfigFiles/Config.json
environment:
SQL_SERVER: servicebus-db
MSSQL_SA_PASSWORD: "MasterPassw0rd" # Password should be same as what is set for SQL Edge
ACCEPT_EULA: Y
SQL_WAIT_INTERVAL: 1 # Disable wait as we perform a health check
depends_on:
servicebus-db:
condition: service_healthy
servicebus-db:
image: "mcr.microsoft.com/mssql/server:2022-latest"
environment:
MSSQL_PID: 'Express'
ACCEPT_EULA: Y
MSSQL_SA_PASSWORD: "MasterPassw0rd"
healthcheck:
test: ["CMD", "/opt/mssql-tools18/bin/sqlcmd", "-b", "-C", "-S", "localhost", "-U", "sa", "-P", "MasterPassw0rd", '-Q', "SELECT 'mssql is ready'", "-h", "-1"]
interval: 5s
timeout: 5s
retries: 12
servicebus-health:
image: quay.io/curl/curl-base
entrypoint: ["sleep", "infinity"]
healthcheck:
test: ["CMD", "curl", "-f", "http://servicebus:5300/health"]
interval: 5s
timeout: 5s
retries: 12
servicebus-api:
hostname: servicebus
build:
context: ./dev/asbapi
ports:
- "80:80" # Service Bus management API
configs:
- source: servicebus
target: /config/config.json
azurite:
image: mcr.microsoft.com/azure-storage/azurite:3.35.0
ports:
- "10000:10000" # Blob service
- "10001:10001" # Queue service
- "10002:10002" # Table service
healthcheck:
test: ["CMD", "nc", "-z", "127.0.0.1", "10000"]
interval: 1s
retries: 30
storage-init:
build:
context: ./src/workers/src/Dbosoft.Bote.StorageInit
restart: "no"
depends_on:
azurite:
condition: service_healthy
environment:
"AZURE_STORAGE_CONNECTION_STRING": "DefaultEndpointsProtocol=http;AccountName=devstoreaccount1;AccountKey=Eby8vdM02xNOcqFlqUwJPLlmEtlCDXJ1OUzFT50uSRZ6IFsuFq2UVErCz4I6tq/K1SZFPTOtr/KBHBeksoGMGw==;BlobEndpoint=http://azurite:10000/devstoreaccount1;QueueEndpoint=http://azurite:10001/devstoreaccount1;TableEndpoint=http://azurite:10002/devstoreaccount1;"
signalr:
build:
context: ./dev/asrs
configs:
- source: signalr
target: /emulator/settings.json