From 737ba37223bb4071559c8bfaf4750f1f08f9beab Mon Sep 17 00:00:00 2001 From: junwei0117 Date: Tue, 30 Apr 2024 05:10:55 +0000 Subject: [PATCH 1/2] chore: export ports to localhost to enable proxy usage --- docker-compose.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 29484f5e..e309a879 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -34,6 +34,8 @@ services: expose: - '3000' - '50051' + ports: + - "127.0.0.1:3000:3000/tcp" # depends_on: # - redis # - identity @@ -59,6 +61,8 @@ services: expose: - '3333' - '50051' + ports: + - "127.0.0.1:3333:3333/tcp" volumes: - ./proto:/usr/proto labels: @@ -73,7 +77,10 @@ services: context: ./ dockerfile: ./oid4vc/walt.id/Dockerfile expose: + - '3000' - '50051' + ports: + - "127.0.0.1:3001:3000/tcp" volumes: - ./proto:/usr/proto labels: @@ -87,6 +94,8 @@ services: image: impierce/ssi-agent expose: - '3033' + ports: + - "127.0.0.1:3033:3033/tcp" volumes: - ./proto:/usr/proto labels: From 749ee19b6c291a21add327f0576794a1caabd081 Mon Sep 17 00:00:00 2001 From: junwei0117 Date: Tue, 30 Apr 2024 05:11:45 +0000 Subject: [PATCH 2/2] chore: add a script for deployment service usage --- scripts/deployment.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 scripts/deployment.sh diff --git a/scripts/deployment.sh b/scripts/deployment.sh new file mode 100644 index 00000000..5bc9852d --- /dev/null +++ b/scripts/deployment.sh @@ -0,0 +1,10 @@ +echo "building the image ..." +docker compose -f docker-compose.yml -f docker-compose.dev.yml build --no-cache + +echo "shuting down the docker compose ..." +docker compose -f docker-compose.yml -f docker-compose.dev.yml down + +echo "starting the docker compose ..." +docker compose -f docker-compose.yml -f docker-compose.dev.yml up -d + +echo "done" \ No newline at end of file