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.yml
file to your needs and add your app service to it. - Run
./run.sh
to 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 up
as normal.