This is a distributed application that leverages Docker Swarm for orchestration and Kafka for real-time data streaming. It consists of several microservices, each running in its own Docker container. The application also includes two Spring Boot applications, each connecting to a different database and exposing its own REST API. The Docker Swarm configuration for the application is specified in a compose2.yaml file.
- Docker
- Docker Swarm
- Kafka
- Initialize Docker Swarm:
docker swarm init
- Join other nodes to the swarm (if any):
docker swarm join --token SWMTKN-1-5o5f1fl8k8gmjswniia2a2i9wbwq4x8dksonv7stbbdyguavz2-dar8c4katvw0t4u6cmog65hj7 192.168.65.3:2377
To deploy the services to Docker Swarm, run the following command:
docker stack deploy -c compose2.yaml project
To stop the services, you can leave the swarm:
docker swarm leave --force
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.