Skip to content
Snippets Groups Projects
Commit d2c66eba authored by OZGCloud's avatar OZGCloud
Browse files

Improve start up of dependent services in docker compose

parent 9659fcd6
No related branches found
No related tags found
No related merge requests found
...@@ -34,3 +34,6 @@ end_of_line = lf ...@@ -34,3 +34,6 @@ end_of_line = lf
charset = utf-8 charset = utf-8
trim_trailing_whitespace = true trim_trailing_whitespace = true
insert_final_newline = false insert_final_newline = false
[*.yml]
indent_size = 2
\ No newline at end of file
...@@ -46,8 +46,10 @@ services: ...@@ -46,8 +46,10 @@ services:
ports: ports:
- 9091:9090 - 9091:9090
depends_on: depends_on:
- ozg-mongodb ozg-mongodb:
- ozg-elastic condition: service_started
ozg-elastic:
condition: service_healthy
ozg-goofy: ozg-goofy:
image: docker.ozg-sh.de/goofy:${GOOFY_DOCKER_IMAGE:-snapshot-latest} image: docker.ozg-sh.de/goofy:${GOOFY_DOCKER_IMAGE:-snapshot-latest}
...@@ -82,6 +84,11 @@ services: ...@@ -82,6 +84,11 @@ services:
nofile: nofile:
soft: 65536 soft: 65536
hard: 65536 hard: 65536
healthcheck:
test: [ "CMD", "curl", "-f", "http://localhost:9200" ]
timeout: 10s
retries: 5
start_period: 30s
ozg-usermanager: ozg-usermanager:
image: docker.ozg-sh.de/user-manager:${USERMANAGER_DOCKER_IMAGE:-snapshot-latest} image: docker.ozg-sh.de/user-manager:${USERMANAGER_DOCKER_IMAGE:-snapshot-latest}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment