UNCLASSIFIED

You need to sign in or sign up before continuing.
Commit 5a78b83b authored by WingKwan Lau's avatar WingKwan Lau
Browse files

Update Dockerfile

parent 1a7d3d53
Pipeline #439068 passed with stages
in 6 minutes and 42 seconds
...@@ -38,3 +38,6 @@ RUN chown -R mongodb:mongodb /usr/local/bin ...@@ -38,3 +38,6 @@ RUN chown -R mongodb:mongodb /usr/local/bin
# switch back to mongodb (for non-containerized environments) # switch back to mongodb (for non-containerized environments)
USER mongodb:mongodb USER mongodb:mongodb
HEALTHCHECK --interval=15s --timeout=3s CMD echo 'db.runCommand("ping").ok' | mongo localhost:27017/test
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment