Skip to content

Commit

Permalink
Use diwebsite app to start celery worker
Browse files Browse the repository at this point in the history
  • Loading branch information
davidebukali committed Apr 27, 2022
1 parent 5933089 commit 2821b2a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 9 deletions.
8 changes: 3 additions & 5 deletions docker-compose.dev.yml
Original file line number Diff line number Diff line change
Expand Up @@ -74,19 +74,17 @@ services:
depends_on:
- db
- rabbitmq
build:
context: .
env_file: .env
environment:
- CELERY_BROKER_URL
- DJANGO_SETTINGS_MODULE=di_website.settings.dev
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/code/
- ./config/celery/default:/etc/default
- ./config/celery/init.d:/etc/init.d
restart: always
command: celery -A wagtaillinkchecker worker -l info
command: celery -A di_website worker -l info

volumes:
diwebsite_db:
Expand Down
8 changes: 4 additions & 4 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ services:
- web
- consul


certbot:
container_name: certbot
image: certbot/certbot:latest
Expand Down Expand Up @@ -151,16 +150,17 @@ services:
env_file: .env
environment:
- CELERY_BROKER_URL
- DJANGO_SETTINGS_MODULE=di_website.settings.dev
build:
context: .
dockerfile: Dockerfile
volumes:
- ./:/code/
- ./config/celery/default:/etc/default
- ./config/celery/init.d:/etc/init.d
restart: always
command: celery -A wagtaillinkchecker worker -l info
command: celery -A di_website worker -l info
networks:
- web
- consul

volumes:
diwebsite_db:
Expand Down

0 comments on commit 2821b2a

Please sign in to comment.