Skip to content

Commit e29d9ae

Browse files
authored
Update test-locally-with-event-hub-emulator.md
1 parent 1660d46 commit e29d9ae

File tree

1 file changed

+39
-35
lines changed

1 file changed

+39
-35
lines changed

articles/event-hubs/test-locally-with-event-hub-emulator.md

Lines changed: 39 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -88,41 +88,45 @@ To run the Event Hubs emulator locally on Linux or macOS:
8888

8989
2. To spin up containers for Event Hubs emulator, Save the following .yaml file as *docker-compose.yaml*.
9090

91-
```
92-
name: microsoft-azure-eventhubs
93-
services:
94-
emulator:
95-
container_name: "eventhubs-emulator"
96-
image: "mcr.microsoft.com/azure-messaging/eventhubs-emulator:latest"
97-
volumes:
98-
- "${CONFIG_PATH}:/Eventhubs_Emulator/ConfigFiles/Config.json"
99-
ports:
100-
- "5672:5672"
101-
- "9092:9092"
102-
environment:
103-
BLOB_SERVER: azurite
104-
METADATA_SERVER: azurite
105-
ACCEPT_EULA: ${ACCEPT_EULA}
106-
depends_on:
107-
- azurite
108-
networks:
109-
eh-emulator:
110-
aliases:
111-
- "eventhubs-emulator"
112-
azurite:
113-
container_name: "azurite"
114-
image: "mcr.microsoft.com/azure-storage/azurite:latest"
115-
ports:
116-
- "10000:10000"
117-
- "10001:10001"
118-
- "10002:10002"
119-
networks:
120-
eh-emulator:
121-
aliases:
122-
- "azurite"
123-
networks:
124-
eh-emulator:
125-
```
91+
```
92+
name: microsoft-azure-eventhubs
93+
services:
94+
emulator:
95+
container_name: "eventhubs-emulator"
96+
image: "mcr.microsoft.com/azure-messaging/eventhubs-emulator:latest"
97+
pull_policy: always
98+
volumes:
99+
- "${CONFIG_PATH}:/Eventhubs_Emulator/ConfigFiles/Config.json"
100+
ports:
101+
- "5672:5672"
102+
- "9092:9092"
103+
- "5300:5300"
104+
environment:
105+
BLOB_SERVER: azurite
106+
METADATA_SERVER: azurite
107+
ACCEPT_EULA: ${ACCEPT_EULA}
108+
depends_on:
109+
- azurite
110+
networks:
111+
eh-emulator:
112+
aliases:
113+
- "eventhubs-emulator"
114+
azurite:
115+
container_name: "azurite"
116+
image: "mcr.microsoft.com/azure-storage/azurite:latest"
117+
pull_policy: always
118+
ports:
119+
- "10000:10000"
120+
- "10001:10001"
121+
- "10002:10002"
122+
networks:
123+
eh-emulator:
124+
aliases:
125+
- "azurite"
126+
networks:
127+
eh-emulator:
128+
129+
```
126130

127131
3. Create an .env file to declare the environment variables for the Event Hubs emulator:
128132

0 commit comments

Comments
 (0)