Template for an app with a MongoDB cluster using Docker. The app service only starts after the replica set is fully operational and a primary is available.
- Customize the
docker-compose.ymlfile to your needs and add your app service to it. - Run
./run.shto start the cluster and your app until you quit it withCtrl+C. The script will display only the logs of your app. Alternatively, you can just usedocker-compose upas normal.