Skip to content

Commit

Permalink
feat: docker compose healthy check
Browse files Browse the repository at this point in the history
  • Loading branch information
Olivier Bonnaure committed Mar 23, 2024
1 parent 6893eb7 commit bf7770b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion config/database.json.sample
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"password": "password"
},
"test": {
"db_name": "luaonbeans_tests",
"db_name": "luaonbeans_test",
"url": "http://127.0.0.1:8529",
"username": "root",
"password": "password"
Expand Down
9 changes: 8 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,19 @@ services:
- 7000:8080
environment:
BEANS_ENV: production
depends_on:
arangodb:
condition: service_healthy

arangodb:
image: arangodb:latest
restart: always
environment:
ARANGO_ROOT_PASSWORD: password
healthcheck:
test: wget -qO- http://localhost:8529
interval: 100ms
timeout: 1s
retries: 2
ports:
- 8529:8529
volumes:
Expand Down

0 comments on commit bf7770b

Please sign in to comment.