diff --git a/.run/[git] payroll server.run.xml b/.run/[git] payroll server.run.xml new file mode 100644 index 0000000..d59339e --- /dev/null +++ b/.run/[git] payroll server.run.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.run/[git] payroll worker.run.xml b/.run/[git] payroll worker.run.xml new file mode 100644 index 0000000..b881fd1 --- /dev/null +++ b/.run/[git] payroll worker.run.xml @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/.run/[git] plugin stack.run.xml b/.run/[git] plugin stack.run.xml new file mode 100644 index 0000000..af63e95 --- /dev/null +++ b/.run/[git] plugin stack.run.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.run/[git] tx_indexer worker.run.xml b/.run/[git] tx_indexer worker.run.xml new file mode 100644 index 0000000..7b810e1 --- /dev/null +++ b/.run/[git] tx_indexer worker.run.xml @@ -0,0 +1,17 @@ + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/README.md b/README.md index 3d892de..b0da9a7 100644 --- a/README.md +++ b/README.md @@ -89,9 +89,9 @@ Vultisigner / VultiServer consists of two components: - Docker and Docker Compose - MinIO client (mc) -## 1. Start Infrastructure Services +## 1. Start Services -First, start the required infrastructure services using Docker Compose: +First, start the services using Docker Compose, it has both db/infra and backend services: ``` # create shared network in docker @@ -102,6 +102,15 @@ make up make down ``` +To debug Docker containers in GoLand with breakpoints, [refer to this article](https://www.jetbrains.com/help/go/attach-to-running-go-processes-with-debugger.html). + +For convenient usage of debug breakpoints in GoLand, you can start only infra/db with Docker, and backend services outside Docker. Configs shared in `.run` directory, all envs already configured correctly. It will run: +- Payroll Server; +- Payroll Worker; +- Tx Indexer Worker; + +![goland-run.png](readme-static/goland-run.png) + ## 2. Access MinIO You can verify the buckets were created by visiting the MinIO Console: diff --git a/docker-compose.yaml b/docker-compose.yaml index 9b4f84f..088ee92 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -100,7 +100,7 @@ services: volumes: db_data: redis_data: - minio_data: + minio_data: networks: shared_network: - external: true \ No newline at end of file + external: true diff --git a/readme-static/goland-run.png b/readme-static/goland-run.png new file mode 100644 index 0000000..30efa83 Binary files /dev/null and b/readme-static/goland-run.png differ