Skip to content

Commit

Permalink
fix ! typo (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitali-yanushchyk-valor authored May 28, 2024
1 parent a13c97f commit 82ed415
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 43 deletions.
6 changes: 3 additions & 3 deletions compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ services:
<<: *common
ports:
- 8000:8000
command: ["entrypoint.sh", "dev"]
command: ["docker-entrypoint.sh", "dev"]
healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/healthcheck"]
interval: 10s
Expand All @@ -29,11 +29,11 @@ services:

celery_worker:
<<: *common
command: ["entrypoint.sh", "celery_worker"]
command: ["docker-entrypoint.sh", "worker"]

celery_beat:
<<: *common
command: ["entrypoint.sh", "celery_beat"]
command: ["docker-entrypoint.sh", "beat"]

db:
image: postgres:15
Expand Down
5 changes: 3 additions & 2 deletions docker/bin/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ case "$1" in
exec uwsgi --ini /conf/uwsgi.ini
;;
worker)
exec celery -A hope_dedup_engine.celery worker -E --loglevel=ERROR --concurrency=4
export C_FORCE_ROOT=1
exec celery -A hope_dedup_engine.config.celery worker -E --loglevel=ERROR --concurrency=4
;;
beat)
exec celery -A hope_dedup_engine.celery beat -E --loglevel=ERROR ---scheduler django_celery_beat.schedulers:DatabaseScheduler
exec celery -A hope_dedup_engine.config.celery beat --loglevel=ERROR --scheduler django_celery_beat.schedulers:DatabaseScheduler
;;
dev)
until pg_isready -h db -p 5432;
Expand Down
38 changes: 0 additions & 38 deletions docker/entrypoint.sh

This file was deleted.

0 comments on commit 82ed415

Please sign in to comment.