-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
79 lines (74 loc) · 2.24 KB
/
docker-compose.yml
File metadata and controls
79 lines (74 loc) · 2.24 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
77
78
79
version: "3.9"
services:
# -------------------- Azure SQL Edge --------------------
sqledge:
container_name: sqledge
image: mcr.microsoft.com/azure-sql-edge:latest
environment:
ACCEPT_EULA: "Y"
MSSQL_SA_PASSWORD: "YourStrongP@ssword123!"
ports:
- "1433:1433" # Optional: expose for local dev
# volumes:
# - sqledge-data:/var/opt/mssql
networks:
- sb-emulator
restart: unless-stopped
healthcheck:
test: ["CMD", "/bin/bash", "-c", "nc -z localhost 1433"]
interval: 10s
retries: 3
# -------------------- Azure Service Bus Emulator --------------------
servicebus-emulator:
container_name: servicebus-emulator
image: mcr.microsoft.com/azure-messaging/servicebus-emulator:latest
pull_policy: always
volumes:
- ./servicebus-emulator:/ServiceBus_Emulator/ConfigFiles
ports:
- "5672:5672"
- "5671:5671"
- "5300:5300"
environment:
SQL_SERVER: sqledge
MSSQL_SA_PASSWORD: "YourStrongP@ssword123!"
ACCEPT_EULA: "Y"
depends_on:
- sqledge
networks:
sb-emulator:
aliases:
- sbemulatorns
healthcheck:
test: ["CMD", "/bin/bash", "-c", "nc -z localhost 5672"]
interval: 5s
timeout: 5s
retries: 15
# ------------------------------ RabbitMQ ------------------------------
rabbitmq:
image: rabbitmq:3.13-management
container_name: rabbitmq-test
ports:
- "5673:5672"
- "15672:15672"
environment:
RABBITMQ_DEFAULT_USER: admin
RABBITMQ_DEFAULT_PASS: admin
healthcheck:
test: ["CMD", "rabbitmq-diagnostics", "check_running"]
interval: 5s
timeout: 5s
retries: 20
rabbit-init:
image: curlimages/curl:8.9.1
depends_on:
rabbitmq:
condition: service_healthy
command: >
sh -c 'until curl -su admin:admin http://rabbitmq:15672/api/overview >/dev/null 2>&1; do sleep 1; done;
curl -su admin:admin -H "content-type: application/json" -X PUT "http://rabbitmq:15672/api/queues/%2f/demo-messages"
-d "{\"durable\":false,\"auto_delete\":false,\"arguments\":{}}";'
# ------------------------ Shared Networks ---------------------------
networks:
sb-emulator:
driver: bridge