A project with following services. This project uses all services as git sub-modules if you clone repo and wanted to inspect code of below services, clone sub-modules too.
-
File uploader service for media files (golang) [
storage
]: It have endpoint to upload and download doc file. It communicates todoc_to_png
andpostgres
services. It also save attachment data in database. -
doc, txt, pdf to png converter (python) [
doc_to_png
]: It is simple flask server to convert doc to images. -
client (react) [
client
]: It is pure react base client with communicate tostorage
service. It allows you to upload and download doc. -
Postgresql (docker-image) [
postgres
]: It is postgresql database pulled from official psql repo of docker hub.
git clone git@github.com:Mohammed-Aadil/distributed-system-demo.git --recurse-submodules
cd distributed-system-demo
docker-compose up
ordocker stack deploy -c docker-compose.yml ds
- To close all services
docker-compose down
ordocker stack rm ds
That's all you need to do.