Skip to content
Discussion options

You must be logged in to vote

Here's an example compose file for local testing that should work:

name: fdp117
services:
  mongo:
    image: "mongo:8.0"
    healthcheck:
      test: |
        [ $(mongosh --quiet --host localhost:27017 --eval "db.runCommand('ping').ok") = 1 ] || exit 1
      start_interval: 3s
      start_period: 30s

  fdp:
    image: "fairdata/fairdatapoint:1.17"
    environment:
      SERVER_PORT: 8082
      INSTANCE_CLIENTURL: http://localhost:8083
      INSTANCE_PERSISTENTURL: http://localhost:8083
      # https://github.com/FAIRDataTeam/FAIRDataPoint/blob/6587b09dcefb0e4fc13fd1f045c0c6dd47bd61fa/src/main/java/nl/dtls/fairdatapoint/api/dto/settings/SettingsPingDTO.java#L41
      PING_ENABLED: true

Replies: 3 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@welharrak
Comment options

Comment options

You must be logged in to vote
1 reply
@welharrak
Comment options

Comment options

You must be logged in to vote
0 replies
Answer selected by welharrak
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants