supercharge / mongodb-github-action

Use MongoDB in GitHub Actions
MIT License
222 stars 46 forks source link

How can i add/implement health check using this approach? #38

Closed lafbelmonte closed 1 year ago

lafbelmonte commented 1 year ago

How can I replicate this:


          mongodb:
              image: mongo
              env:
                MONGO_INITDB_ROOT_USERNAME: test
                MONGO_INITDB_ROOT_PASSWORD: password
                MONGO_INITDB_DATABASE: test
              options: >-
                --health-cmd mongo
                --health-interval 10s
                --health-timeout 5s
                --health-retries 5
              ports:
                - 27017:27017

specifically the options part
marcuspoehls commented 1 year ago

@lafbelmonte Hey Luis, we’re not passing through any docker options yet. Are you interested in creating a pull request for that?

Here are some pointers from my quick research: