I need some help and be pointed in the correct direction.
I have 6 git repositories that together combine a bigger application (3 Node.js API, 2 React web apps and one repository for Ansible and templates for config files for the other repos).
Currently we are building it only with Ansible and CircleCI but the current build process is not that great and I think of moving to Docker, docker-compose and CircleCI 2.0.
The thing is: how should I dockerize it?
All the databases are remote. How should I approach nginx?
I thought about writing Dockerfiles for each application and then using Ansible to connect to host, install Docker, pull sources and start building containers from Dockerfiles.
Nginx should be configured by Ansible on host or can it be made into a Docker container somehow?