-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdocker-compose.servicebus.yml
30 lines (26 loc) · 1.5 KB
/
docker-compose.servicebus.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
# docker-compose -f docker-compose.servicebus.yml up --build -d
# https://docs.microsoft.com/en-US/azure/service-bus-messaging/service-bus-quickstart-topics-subscriptions-portal#get-the-connection-string
version: "3.4"
services:
# create service-bus https://portal.azure.com
#https://docs.microsoft.com/en-US/azure/service-bus-messaging/service-bus-quickstart-topics-subscriptions-portal#get-the-connection-string
sample-servicebus-producer:
build:
context: .
dockerfile: ./src/Samples/Sample.ServiceBus.Producer/Dockerfile
container_name: Sample.ServiceBus.Producer
volumes:
- ./.docker/servicebus/Sample.ServiceBus.Producer/Logs/:/app/Logs/
environment:
SERVICEBUS_SUBSCRIPTIONNAME: my-subscription
SERVICEBUS_CONNECTIONSTRING: "Endpoint=sb://{your_bus}.servicebus.windows.net/;SharedAccessKeyName=Root;SharedAccessKey={your_topic_policy_key};EntityPath=my_event_bus;"
sample-servicebus-consumer:
build:
context: .
dockerfile: ./src/Samples/Sample.ServiceBus.Consumer/Dockerfile
container_name: Sample.ServiceBus.Consumer
volumes:
- ./.docker/servicebus/Sample.ServiceBus.Consumer/Logs/:/app/Logs/
environment:
SERVICEBUS_SUBSCRIPTIONNAME: my-subscription
SERVICEBUS_CONNECTIONSTRING: "Endpoint=sb://{your_bus}.servicebus.windows.net/;SharedAccessKeyName=Root;SharedAccessKey={your_topic_policy_key};EntityPath=my_event_bus;"