samyun / southwest-price-drop-bot

Bot that watches Southwest flights for price drops.
Other
74 stars 41 forks source link

mongo not found; please switch to mongosh #87

Open utdrmac opened 8 months ago

utdrmac commented 8 months ago

Healthchecks kept failing for the mongo container. Shellexec into the container to run manually:

root@c74fdc7a45b9:/# echo 'db.stats().ok' | mongo localhost:27017/sw_db
bash: mongo: command not found

This is due to mongo removing the old client and replacing with mongosh. Please fix the healthcheck to the following:

    healthcheck:
      test: echo 'db.stats().ok' | mongosh localhost:27017/sw_db --quiet

The healthcheck also runs locally so the host to connect to is always localhost; not the hostname of the container.