Skip to content

Commit

Permalink
add health check to backend container #290
Browse files Browse the repository at this point in the history
  • Loading branch information
beesaferoot committed Dec 13, 2024
1 parent 23c1c70 commit ec3588b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,13 @@ services:
- 8443:443
volumes:
- ./src/backend:/var/www/html
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost/up"]

Check failure on line 22 in docker-compose.yml

View workflow job for this annotation

GitHub Actions / Run yamllint

22:14 [quoted-strings] string value is redundantly quoted with double quotes

Check failure on line 22 in docker-compose.yml

View workflow job for this annotation

GitHub Actions / Run yamllint

22:21 [quoted-strings] string value is redundantly quoted with double quotes

Check failure on line 22 in docker-compose.yml

View workflow job for this annotation

GitHub Actions / Run yamllint

22:29 [quoted-strings] string value is redundantly quoted with double quotes

Check failure on line 22 in docker-compose.yml

View workflow job for this annotation

GitHub Actions / Run yamllint

22:35 [quoted-strings] string value is redundantly quoted with double quotes
start_period: 30s
interval: 10s
timeout: 5s
retries: 3


frontend-dev:
container_name: frontend-dev
Expand Down

0 comments on commit ec3588b

Please sign in to comment.