From 23067f2ae86c2c166d0c7914b2bf72e14089313e Mon Sep 17 00:00:00 2001 From: Daniel Kurtz Date: Thu, 11 Jul 2024 14:54:48 +0200 Subject: [PATCH] Added profile to build and run all participants at once --- README.md | 4 ++-- src/docker-compose.yml | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b2a7485..c9880ca 100644 --- a/README.md +++ b/README.md @@ -31,14 +31,14 @@ To run the connectors on your own machine, installing Docker is enough. If you d To run the code using docker, use the following commands in the `src` folder: ``` -sudo docker compose build +sudo docker compose --profile complete build sudo docker compose --profile up ``` Or to start all participants at the same time ``` -sudo docker compose --profile company --profile taxadvisor --profile bank up +sudo docker compose --profile complete up ```
diff --git a/src/docker-compose.yml b/src/docker-compose.yml index 22dee85..c92a4f5 100644 --- a/src/docker-compose.yml +++ b/src/docker-compose.yml @@ -7,6 +7,7 @@ services: dockerfile: company_connector.Dockerfile profiles: - company + - complete ports: - "19191:19191" - "19192:19192" @@ -20,6 +21,7 @@ services: dockerfile: tax_advisor_connector.Dockerfile profiles: - taxadvisor + - complete ports: - "29191:19191" - "29192:19192" @@ -33,6 +35,7 @@ services: dockerfile: bank_connector.Dockerfile profiles: - bank + - complete ports: - "39191:19191" - "39192:19192" @@ -46,6 +49,7 @@ services: dockerfile: company_frontend.Dockerfile profiles: - company + - complete ports: - "3001:3000" volumes: @@ -57,6 +61,7 @@ services: dockerfile: tax_advisor_frontend.Dockerfile profiles: - taxadvisor + - complete ports: - "3002:3000" volumes: @@ -68,6 +73,7 @@ services: dockerfile: bank_frontend.Dockerfile profiles: - bank + - complete ports: - "3003:3000" volumes: @@ -79,6 +85,7 @@ services: dockerfile: company_database.Dockerfile profiles: - company + - complete ports: - "8081:8080" @@ -88,6 +95,7 @@ services: dockerfile: taxadvisor_database.Dockerfile profiles: - taxadvisor + - complete ports: - "8082:8080" @@ -97,5 +105,6 @@ services: dockerfile: bank_database.Dockerfile profiles: - bank + - complete ports: - "8083:8080" \ No newline at end of file