By Khussain Kudaibergenov | Хусаин Кудайбергенов
-
Make sure you have Docker and Docker Compose installed on your system.
-
Clone this repository
-
Run
docker-compose up --build
This repository contains a Docker Compose setup for the Goods application, which consists of several services: PostgreSQL, Redis, ClickHouse, NATS, Gin server, and Golang Server which connected to clickhouse.
http://localhost:8081/swagger/index.html
- Main DB
- Port: 5437 (host) mapped to 5432 (container)
- DB for cache
- Port: 6380 (host) mapped to 6379 (container)
- DB for data logs
- Port: 9001 (host) mapped to 9000 (container)
- For connecting
clickhouse-client --host localhost --port 9001 --user clickhouse --password clickhouse
- Message broker between Gin server and ClickHouse
- Port: 4223 (host) mapped to 4222 (container)
- Build: ./app_sender
- Port: 8081 (host) mapped to 8080 (container)
- Build: ./app_receiver
- Port: 8082 (host) mapped to 8082 (container)
- Batch size for inserting to Clickhouse is 2