-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathdocker-compose.yaml
More file actions
70 lines (64 loc) · 1.65 KB
/
docker-compose.yaml
File metadata and controls
70 lines (64 loc) · 1.65 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
version: "3.9"
services:
mailserver:
container_name: dummy.mailserver
image: jijiechen/papercut:latest
networks:
- system-design
ports:
- 25:25
- 37408:37408
post.service:
container_name: post.service
image: ${DOCKER_REGISTRY-}postservice
build:
context: .
dockerfile: PostService/Dockerfile
networks:
- system-design
environment:
- ConnectionStrings__CosmosDB=COSMOSDB_CONNECTION_STRING
- AssetService=http://web.apigateway/assets
asset.service:
container_name: asset.service
image: ${DOCKER_REGISTRY-}assetservice
build:
context: .
dockerfile: AssetService/Dockerfile
networks:
- system-design
environment:
- AzureWebJobsStorage=STORAGE_ACCOUNT_CONNECTION_STRING
- StorageAccountName=STORAGE_ACCOUNT_NAME
- StorageAccountKey=STORAGE_ACCOUNT_KEY
reaction.service:
container_name: reaction.service
image: ${DOCKER_REGISTRY-}reactionservice
build:
context: .
dockerfile: LikeService/Dockerfile
networks:
- system-design
environment:
- ConnectionStrings__CosmosDB=AccountEndpoint=COSMOSDB_CONNECTION_STRING
- ConnectionStrings__ServiceBus=SERVICE_BUS_CONNECTION_STRING
web.apigateway:
container_name: web.apigateway
image: ${DOCKER_REGISTRY-}webapigateway
build:
context: .
dockerfile: WebApiGateway/Dockerfile
environment:
- ASPNETCORE_URLS=http://+:80
ports:
- 8082:80
networks:
- system-design
mem_limit: 100M
mem_reservation: 50M
volumes:
data01:
driver: local
networks:
system-design:
driver: bridge