-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.override.yml
108 lines (102 loc) · 2.94 KB
/
docker-compose.override.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
services:
products-db:
container_name: products-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=eCommerceProducts
restart: always
ports:
- "5433:5432"
volumes:
- products_data:/var/lib/postgresql/data/
networks:
- products-postgres-network
users-db:
container_name: users-db
environment:
- POSTGRES_USER=postgres
- POSTGRES_PASSWORD=postgres
- POSTGRES_DB=eCommerceUsers
restart: always
ports:
- "5434:5432"
volumes:
- users_data:/var/lib/postgresql/data/
networks:
- users-postgres-network
order-db:
container_name: order-db
ports:
- "27017:27017"
volumes:
- ../order-db:/docker-entrypoint-initdb.d
networks:
- orders-mongo-network
products-service:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8080
# - ASPNETCORE_HTTPS_PORTS=8081
- ASPNETCORE_Kestrel__Certificates__Default__Password=root007
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- ConnectionStrings__Database=Server=products-db;Database=eCommerceProducts;Username=postgres;Password=postgres;Include Error Detail=true
depends_on:
- products-db
ports:
- "6000:8080"
# - "6061:8081"
volumes:
- ~/.aspnet/https:/https:ro
networks:
- products-postgres-network
- ecommerce-network
users-service:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=9000
# - ASPNETCORE_HTTPS_PORTS=8081
- ASPNETCORE_Kestrel__Certificates__Default__Password=root007
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- ConnectionStrings__Database=Server=users-db;Database=eCommerceUsers;Username=postgres;Password=postgres;Include Error Detail=true
depends_on:
- users-db
ports:
- "7000:9000"
# - "7071:8081"
volumes:
- ~/.aspnet/https:/https:ro
networks:
- users-postgres-network
- ecommerce-network
order-service:
environment:
- ASPNETCORE_ENVIRONMENT=Development
- ASPNETCORE_HTTP_PORTS=8080
# - ASPNETCORE_HTTPS_PORTS=8081
- ASPNETCORE_Kestrel__Certificates__Default__Password=root007
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- MONGODB_HOST=order-db
- UsersMicroserviceName=users-service
- UsersMicroservicePort=9000
- ProductsMicroserviceName=products-service
- ProductsMicroservicePort=8080
depends_on:
- order-db
ports:
- "9001:8080"
# - "9091:8081"
volumes:
- ~/.aspnet/https:/https:ro
networks:
- orders-mongo-network
- ecommerce-network
networks:
users-postgres-network:
driver: bridge
products-postgres-network:
driver: bridge
orders-mongo-network:
driver: bridge
ecommerce-network:
driver: bridge