Skip to content

Commit

Permalink
Update README.md file
Browse files Browse the repository at this point in the history
SviatoslavBoichuk committed Dec 5, 2024
1 parent 1356565 commit 1522b13
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -173,3 +173,21 @@ cd ./test
*NOTE:* currently, tests are not running inside a container.
This means, that it's up to the caller make sure tests can communicate with whatever CGW's deployment as well as thirdparty services.
E.g. tests inside running *host* enviroment must be able to communicate with CGW, Redis, Kafka, PGSQL etc.

# Automated multi-CGW instances start/stop with Docker Compose
Automated multi-CGW start/stop based on "docker-compose-template.yml.j2" file located inside the *utils/docker* directory.
To bring-up multiple (minumum 1) CGW instances we use templated "docker-compose-template.yml.j2" file.
The "StartMultiCGW.py" script located inside the *utils/docker* directory used to:
1. Stop all running Docker Composes.
2. Update/generate certificates
3. Generate "docker-compose-multi-cgw.yml" Docker Compose file that includes:
- Kafka service
- Redis service
- PostgreSQL service
- [N] CGW instances
4. Start Docker Compose using generated "docker-compose-multi-cgw.yml" file.

The "CGW_INSTANCES_NUM" environment variable is used to specify number of CGW instances.
Makefile has 2 targets to start/stop Docker Compose
- start-multi-cgw
- stop-multi-cgw

0 comments on commit 1522b13

Please sign in to comment.