Skip to content

Commit

Permalink
celery entrypoint
Browse files Browse the repository at this point in the history
  • Loading branch information
NvdLaan committed Aug 12, 2024
1 parent a31a655 commit 9c3bdb5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions app/deploy/docker-entrypoint.celery.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
#!/usr/bin/env bash
set -u # crash on missing env variables
set -e # stop on any error
set -x

exec "$@"
2 changes: 2 additions & 0 deletions docker-compose.local.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ services:
image: ${REGISTRY:-127.0.0.1:5001}/${REPOSITORY:-salmagundi/top-backend}:${VERSION:-latest}
container_name: top_celery_worker
hostname: top_celery_worker
entrypoint: /app/deploy/docker-entrypoint.celery.sh
command: bash -c "/app/wait-for.sh http://api:8000 -- /app/celery.sh"
depends_on:
- api
Expand All @@ -62,6 +63,7 @@ services:
image: ${REGISTRY:-127.0.0.1:5001}/${REPOSITORY:-salmagundi/top-backend}:${VERSION:-latest}
container_name: top_celery_beat
hostname: top_celery_beat
entrypoint: /app/deploy/docker-entrypoint.celery.sh
command: bash -c "/app/wait-for.sh http://api:8000 -- /app/celery-beat.sh"
# command: bash -c "/app/celery-beat.sh"
depends_on:
Expand Down

0 comments on commit 9c3bdb5

Please sign in to comment.