Skip to content

Healthchecks are not working for server and mongodb services #47

@josemgarcia

Description

@josemgarcia

Both health checks for the space-server and the mongodb service are not working properly, which can be seen when running docker ps after the compose up.

For the space-server, the problem is that curl is not contained in the base "slim" image. This could be fixed by adding the following to the Dockerfile:

RUN apt-get update && apt-get install -y curl

In the mongodb case, the command to be used in the test option is mongosh instead of mongo.

Additionally, I think that for completeness, the dependencies in the docker-compose.yml should be specified as in:

depends_on:
mongodb:
condition: service_healthy

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingenhancementNew feature or request

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions