@@ -6,21 +6,29 @@ version: '3.7'
66services :
77 # AuthZ service
88 app-server :
9- # Configuration for building the docker image for the backend service
10- image : luigiferrettino/custom-oauth:authz
9+ # Configuration for building the docker image for the authz server
10+ build :
11+ context : .
12+ dockerfile : ./oauth2-authorization-server/Dockerfile
13+ args :
14+ # Secrets
15+ client_id : webappclient
16+ client_secret : webappclientsecret
1117 ports :
12- - " 9080:9080" # Forward the exposed port 8080 on the container to port 8080 on the host machine
18+ - " 9080:9080" # Forward the exposed port 9080 on the container to port 9080 on the host machine
1319 restart : always
1420 networks :
1521 testing_net :
1622 ipv4_address : 172.28.1.2
1723
1824 # Resource service
1925 app-res :
20- # Configuration for building the docker image for the backend service
21- image : luigiferrettino/custom-oauth:resource
26+ # Configuration for building the docker image for the client server
27+ build :
28+ context : .
29+ dockerfile : ./oauth2-resource-server/Dockerfile
2230 ports :
23- - " 9280:9280" # Forward the exposed port 8080 on the container to port 8080 on the host machine
31+ - " 9280:9280" # Forward the exposed port 9280 on the container to port 9280 on the host machine
2432 restart : always
2533 depends_on :
2634 - app-server
@@ -30,7 +38,14 @@ services:
3038
3139 # Client Service
3240 app-client :
33- image : luigiferrettino/custom-oauth:client
41+ # Configuration for building the docker image for the resource server
42+ build :
43+ context : .
44+ dockerfile : ./oauth2-client/Dockerfile
45+ args :
46+ # Secrets
47+ client_id : webappclient
48+ client_secret : webappclientsecret
3449 ports :
3550 - " 9180:9180" # Map the exposed port 9190 on the container to port 9190 on the host machine
3651 restart : always
@@ -41,7 +56,7 @@ services:
4156 ipv4_address : 172.28.1.1
4257
4358
44- # Networks to be created to facilitate communication between containers
59+ # Networks created to facilitate communication between containers
4560networks :
4661 testing_net :
4762 ipam :
0 commit comments