Repository navigation
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
81 lines (76 loc) · 2.43 KB
/
Copy pathdocker-compose.yaml
File metadata and controls
81 lines (76 loc) · 2.43 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
80
81
services:
catalog-service:
build:
context: .
dockerfile: src/CatalogService/Dockerfile
ports:
- "5001:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- CosmosDb__ConnectionString=AccountEndpoint=https://cosmosdb:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==
- CosmosDb__DatabaseName=GlobalAzureDemo
- CosmosDb__AllowInsecureCertificate=true
- Authentication__DisableAuth=true
depends_on:
cosmosdb:
condition: service_healthy
networks:
- app-network
order-service:
build:
context: .
dockerfile: src/OrderService/Dockerfile
ports:
- "5002:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- CosmosDb__ConnectionString=AccountEndpoint=https://cosmosdb:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==
- CosmosDb__DatabaseName=GlobalAzureDemo
- CosmosDb__AllowInsecureCertificate=true
- Authentication__DisableAuth=true
depends_on:
cosmosdb:
condition: service_healthy
networks:
- app-network
notification-service:
build:
context: .
dockerfile: src/NotificationService/Dockerfile
ports:
- "5003:8080"
environment:
- ASPNETCORE_ENVIRONMENT=Development
- CosmosDb__ConnectionString=AccountEndpoint=https://cosmosdb:8081/;AccountKey=C2y6yDjf5/R+ob0N8A7Cgv30VRDJIWEHLM+4QDU5DE2nQ9nDuVTqobD4b8mGGyPMbIZnqyMsEcaGQy67XIw/Jw==
- CosmosDb__DatabaseName=GlobalAzureDemo
- CosmosDb__AllowInsecureCertificate=true
- Authentication__DisableAuth=true
depends_on:
cosmosdb:
condition: service_healthy
networks:
- app-network
cosmosdb:
image: mcr.microsoft.com/cosmosdb/linux/azure-cosmos-emulator:latest
ports:
- "8081:8081"
- "10250-10255:10250-10255"
environment:
- AZURE_COSMOS_EMULATOR_PARTITION_COUNT=5
- AZURE_COSMOS_EMULATOR_ENABLE_DATA_PERSISTENCE=true
- AZURE_COSMOS_EMULATOR_IP_ADDRESS_OVERRIDE=0.0.0.0
healthcheck:
test: ["CMD-SHELL", "curl -fsk https://localhost:8081/_explorer/emulator.pem || exit 1"]
interval: 10s
timeout: 5s
retries: 10
start_period: 60s
volumes:
- cosmos-data:/tmp/cosmos/appdata
networks:
- app-network
networks:
app-network:
driver: bridge
volumes:
cosmos-data: