Skip to content

Commit 4424c65

Browse files
authored
Merge pull request #298986 from MicrosoftDocs/repo_sync_working_branch
Confirm merge from repo_sync_working_branch to main to sync with https://github.com/MicrosoftDocs/azure-docs (branch main)
2 parents 00ae518 + 3f57912 commit 4424c65

File tree

1 file changed

+35
-35
lines changed

1 file changed

+35
-35
lines changed

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

Lines changed: 35 additions & 35 deletions
Original file line numberDiff line numberDiff line change
@@ -88,43 +88,43 @@ 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-
```
91+
```yaml
9292
name: microsoft-azure-eventhubs
9393
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:
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:
128128

129129
```
130130

0 commit comments

Comments
 (0)