-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yaml
23 lines (21 loc) · 1.27 KB
/
docker-compose.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
version: '3'
# run "mvn clean install" first to generate the images
services:
rest-service:
image: service/rest-service:1.0.0-SNAPSHOT
container_name: rest-service
ports:
- "8080:8080"
environment:
- APPLICATIONINSIGHTS_CONNECTION_STRING=${APPLICATIONINSIGHTS_CONNECTION_STRING:?APPLICATIONINSIGHTS_CONNECTION_STRING env variable not set}
- EVENTHUB_NAMESPACE_NAME=${EVENTHUB_NAMESPACE_NAME:?EVENTHUB_NAMESPACE_NAME env variable key not set}
- EVENTHUB_NAME=${EVENTHUB_NAME:?EVENTHUB_NAMESPACE_NAME env variable key not set}
- EVENTHUB_CONNECTION_STRING=${EVENTHUB_PRODUCER_CONNECTION_STRING:?EVENTHUB_PRODUCER_CONNECTION_STRING env variable key not set}
consumer-service:
image: service/consumer-service:1.0.0-SNAPSHOT
container_name: consumer-service
environment:
- APPLICATIONINSIGHTS_CONNECTION_STRING=${APPLICATIONINSIGHTS_CONNECTION_STRING:?APPLICATIONINSIGHTS_CONNECTION_STRING env variable not set}
- EVENTHUB_NAMESPACE_NAME=${EVENTHUB_NAMESPACE_NAME:?EVENTHUB_NAMESPACE_NAME env variable not set}
- EVENTHUB_NAME=${EVENTHUB_NAME:?EVENTHUB_NAMESPACE_NAME env variable key not set}
- EVENTHUB_CONNECTION_STRING=${EVENTHUB_CONSUMER_CONNECTION_STRING:?EVENTHUB_CONSUMER_CONNECTION_STRING env variable not set}