-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdocker-compose.yml
156 lines (156 loc) · 6.26 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
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
version: '3.4'
services:
pos.identity.api:
image: ${DOCKER_REGISTRY-}posidentityapi
build:
context: .
dockerfile: POS.Identity.API/Dockerfile
depends_on:
- possqlserver
networks:
- posnetwork
environment:
- ASPNETCORE_URLS=https://+:8081;http://+:8080
- ASPNETCORE_Kestrel__Certificates__Default__Password=${ASPNETCOREKestrelCertificatesDefaultPassword}
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- IdentityDBPassword=${IdentityDBPassword} # Need to pass by an environment variable for the DB or set one up in an .env file.
- IdentityJwtKey=${IdentityJwtKey} # Need to pass by an environment variable for the JWT Key or set one up in an .env file.
volumes:
- ~/.aspnet/https:/https:ro
env_file:
- .env
ports:
- "5001:8080" # Map host port 5001 to container HTTP port 8080
- "7010:8081" # Map host port 7010 to container HTTPs port 8081
pos.customers.api:
image: ${DOCKER_REGISTRY-}poscustomersapi
build:
context: .
dockerfile: POS.Customers.API/Dockerfile
depends_on:
- possqlserver
networks:
- posnetwork
environment:
- ASPNETCORE_URLS=https://+:8081;http://+:8080
- ASPNETCORE_Kestrel__Certificates__Default__Password=${ASPNETCOREKestrelCertificatesDefaultPassword}
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- CustomerDBPassword=${CustomerDBPassword} # Need to pass by an environment variable for the DB or set one up in an .env file.
- IdentityApiUrl=${IdentityApiUrl} # URL of the Identity API
- IdentityJwtKey=${IdentityJwtKey} # Need to pass by an environment variable for the JWT Key or set one up in an .env file.
volumes:
- ~/.aspnet/https:/https:ro
env_file:
- .env
ports:
- "5005:8080" # Map host port 5005 to container HTTP port 8080
- "7030:8081" # Map host port 7030 to container HTTPs port 8081
pos.customeridentity.api:
image: ${DOCKER_REGISTRY-}poscustomeridentityapi
build:
context: .
dockerfile: POS.CustomerIdentity.API/Dockerfile
depends_on:
- pos.customers.api
- pos.identity.api
networks:
- posnetwork
environment:
- ASPNETCORE_URLS=https://+:8081;http://+:8080
- ASPNETCORE_Kestrel__Certificates__Default__Password=${ASPNETCOREKestrelCertificatesDefaultPassword}
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- IdentityApiUrl=${IdentityApiUrl} # URL of the Identity API
- IdentityJwtKey=${IdentityJwtKey} # Need to pass by an environment variable for the JWT Key or set one up in an .env file.
- CustomersApiUrl=${CustomersApiUrl} # URL of the Identity API
volumes:
- ~/.aspnet/https:/https:ro
env_file:
- .env
ports:
- "5004:8080" # Map host port 5004 to container HTTP port 8080
- "7031:8081" # Map host port 7031 to container HTTPs port 8081
pos.orders.api:
image: ${DOCKER_REGISTRY-}posordersapi
build:
context: .
dockerfile: POS.Orders.API/Dockerfile
depends_on:
- possqlserver
networks:
- posnetwork
environment:
- ASPNETCORE_URLS=https://+:8081;http://+:8080
- ASPNETCORE_Kestrel__Certificates__Default__Password=${ASPNETCOREKestrelCertificatesDefaultPassword}
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- OrderDBPassword=${OrderDBPassword} # Need to pass by an environment variable for the DB or set one up in an .env file.
- IdentityApiUrl=${IdentityApiUrl} # URL of the Identity API
- IdentityJwtKey=${IdentityJwtKey} # Need to pass by an environment variable for the JWT Key or set one up in an .env file.
volumes:
- ~/.aspnet/https:/https:ro
env_file:
- .env
ports:
- "5006:8080" # Map host port 5006 to container HTTP port 8080
- "7130:8081" # Map host port 7130 to container HTTPs port 8081
pos.products.api:
image: ${DOCKER_REGISTRY-}posproductsapi
build:
context: .
dockerfile: POS.Products.API/Dockerfile
depends_on:
- possqlserver
networks:
- posnetwork
environment:
- ASPNETCORE_URLS=https://+:8081;http://+:8080
- ASPNETCORE_Kestrel__Certificates__Default__Password=${ASPNETCOREKestrelCertificatesDefaultPassword}
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- ProductDBPassword=${ProductDBPassword} # Need to pass by an environment variable for the DB or set one up in an .env file.
- IdentityApiUrl=${IdentityApiUrl} # URL of the Identity API
- IdentityJwtKey=${IdentityJwtKey} # Need to pass by an environment variable for the JWT Key or set one up in an .env file.
volumes:
- ~/.aspnet/https:/https:ro
env_file:
- .env
ports:
- "5007:8080" # Map host port 5007 to container HTTP port 8080
- "7230:8081" # Map host port 7230 to container HTTPs port 8081
pos.stores.api:
image: ${DOCKER_REGISTRY-}posstoresapi
build:
context: .
dockerfile: POS.Stores.API/Dockerfile
depends_on:
- possqlserver
networks:
- posnetwork
environment:
- ASPNETCORE_URLS=https://+:8081;http://+:8080
- ASPNETCORE_Kestrel__Certificates__Default__Password=${ASPNETCOREKestrelCertificatesDefaultPassword}
- ASPNETCORE_Kestrel__Certificates__Default__Path=/https/aspnetapp.pfx
- StoreDBPassword=${StoreDBPassword} # Need to pass by an environment variable for the DB or set one up in an .env file.
- IdentityApiUrl=${IdentityApiUrl} # URL of the Identity API
- IdentityJwtKey=${IdentityJwtKey} # Need to pass by an environment variable for the JWT Key or set one up in an .env file.
volumes:
- ~/.aspnet/https:/https:ro
env_file:
- .env
ports:
- "5008:8080" # Map host port 5005 to container HTTP port 8080
- "7032:8081" # Map host port 7030 to container HTTPs port 8081
possqlserver:
container_name: possqlserver
hostname: possqlserver
image: mcr.microsoft.com/mssql/server:2022-latest
ports:
- "1433:1433"
env_file:
- .env
environment:
- ACCEPT_EULA=Y
- MSSQL_SA_PASSWORD=${MSSQL_SA_PASSWORD}
networks:
- posnetwork
networks:
posnetwork:
driver: bridge