Skip to content

Commit

Permalink
chore(dockerfile): Add health check for webpack service
Browse files Browse the repository at this point in the history
  • Loading branch information
ERosendo committed Jan 24, 2025
1 parent 92ca007 commit c45906e
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docker/courtlistener/docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ services:
- ../../.env.dev
working_dir: /opt/courtlistener/cl
command: sh -c 'npm install && exec npx webpack --progress --watch --mode=development'
healthcheck:
test: sh -c 'ps aux | grep -v grep | grep webpack >/dev/null 2>&1 && echo 0 || echo 1'
interval: 10s
retries: 5
start_period: 10s
timeout: 10s

# Task Server
cl-celery:
Expand Down Expand Up @@ -84,7 +90,10 @@ services:
- ${CL_BASE_DIR:-../../}:/opt/courtlistener
env_file:
- ../../.env.dev
command: sh -c 'npm install && exec npm run dev'
command: sh -c 'npm run dev'
depends_on:
cl-webpack:
condition: service_healthy
tty: true

cl-django:
Expand Down

0 comments on commit c45906e

Please sign in to comment.