-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
114 lines (114 loc) · 3.09 KB
/
docker-compose.yml
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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
services:
postgres:
image: postgres
environment:
- POSTGRES_PASSWORD=postgrespw
ports:
- 5432:5432
volumes:
- /var/lib/postresql/data
mongodb:
image: mongo
environment:
- MONGO_INITDB_ROOT_USERNAME=root
- MONGO_INITDB_ROOT_PASSWORD=mongopw
ports:
- 27017:27017
volumes:
- /var/lib/mongodb/data
rabbitmq:
image: rabbitmq:3-management-alpine
ports:
- 5672:5672
- 15672:15672
auction-svc:
image: bartkoo8/auction-svc:latest
build:
context: .
dockerfile: src/AuctionService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:80
- ASPNETCORE_URLS=http://+:7777
- RabbitMq__Host=rabbitmq
- ConnectionStrings__DefaultConnection=Server=postgres:5432;User Id=postgres;Password=postgrespw;Database=auctions
- IdentityServiceUrl=http://identity-svc
- Kestrel__Endpoints__Grpc__Protocols=Http2
- Kestrel__Endpoints__Grpc__Url=http://+:7777
- Kestrel__Endpoints__WebApi__Protocols=Http1
- Kestrel__Endpoints__WebApi__Url=Http://+:80
ports:
- 7001:80
- 7777:7777
depends_on:
- postgres
- rabbitmq
search-svc:
image: bartkoo8/search-svc:latest
build:
context: .
dockerfile: src/SearchService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:80
- RabbitMq__Host=rabbitmq
- ConnectionStrings__MongoDbConnection=mongodb://root:mongopw@mongodb
- AuctionServiceUrl=http://auction-svc
ports:
- 7002:80
depends_on:
- mongodb
- rabbitmq
identity-svc:
image: bartkoo8/identity-svc:latest
build:
context: .
dockerfile: src/IdentityService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Docker
- ASPNETCORE_URLS=http://+:80
- ConnectionStrings__DefaultConnection=Server=postgres:5432;User Id=postgres;Password=postgrespw;Database=identity
ports:
- 5001:80
depends_on:
- postgres
gateway-svc:
image: bartkoo8/gateway-svc:latest
build:
context: .
dockerfile: src/GatewayService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Docker
- ASPNETCORE_URLS=http://+:80
ports:
- 6001:80
bid-svc:
image: bartkoo8/bid-svc:latest
build:
context: .
dockerfile: src/BiddingService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:80
- RabbitMq__Host=rabbitmq
- ConnectionStrings__BidDbConnection=mongodb://root:mongopw@mongodb
- IdentityServiceUrl=http://identity-svc
- GrpcAuction = http://auction-svc:7777
ports:
- 7003:80
depends_on:
- mongodb
- rabbitmq
notify-svc:
image: bartkoo8/notify-svc:latest
build:
context: .
dockerfile: src/NotificationService/Dockerfile
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_URLS=http://+:80
- RabbitMq__Host=rabbitmq
ports:
- 7004:80
depends_on:
- rabbitmq