Skip to content

Commit

Permalink
implemented build from docker-compose-build
Browse files Browse the repository at this point in the history
minor fixes
  • Loading branch information
Luigi Ferrettino committed May 30, 2020
1 parent 365fd58 commit 68d137f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 9 deletions.
31 changes: 23 additions & 8 deletions docker-compose-build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,21 +6,29 @@ version: '3.7'
services:
# AuthZ service
app-server:
# Configuration for building the docker image for the backend service
image: luigiferrettino/custom-oauth:authz
# Configuration for building the docker image for the authz server
build:
context: .
dockerfile: ./oauth2-authorization-server/Dockerfile
args:
# Secrets
client_id: webappclient
client_secret: webappclientsecret
ports:
- "9080:9080" # Forward the exposed port 8080 on the container to port 8080 on the host machine
- "9080:9080" # Forward the exposed port 9080 on the container to port 9080 on the host machine
restart: always
networks:
testing_net:
ipv4_address: 172.28.1.2

# Resource service
app-res:
# Configuration for building the docker image for the backend service
image: luigiferrettino/custom-oauth:resource
# Configuration for building the docker image for the client server
build:
context: .
dockerfile: ./oauth2-resource-server/Dockerfile
ports:
- "9280:9280" # Forward the exposed port 8080 on the container to port 8080 on the host machine
- "9280:9280" # Forward the exposed port 9280 on the container to port 9280 on the host machine
restart: always
depends_on:
- app-server
Expand All @@ -30,7 +38,14 @@ services:

# Client Service
app-client:
image: luigiferrettino/custom-oauth:client
# Configuration for building the docker image for the resource server
build:
context: .
dockerfile: ./oauth2-client/Dockerfile
args:
# Secrets
client_id: webappclient
client_secret: webappclientsecret
ports:
- "9180:9180" # Map the exposed port 9190 on the container to port 9190 on the host machine
restart: always
Expand All @@ -41,7 +56,7 @@ services:
ipv4_address: 172.28.1.1


# Networks to be created to facilitate communication between containers
# Networks created to facilitate communication between containers
networks:
testing_net:
ipam:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
mp.jwt.verify.publickey.location=/META-INF/public-key.pem
mp.jwt.verify.issuer=http://172.28.1.2:9080
mp.jwt.verify.issuer=http://localhost:9080

0 comments on commit 68d137f

Please sign in to comment.