Move to redis and fix a bunch of things
This commit is contained in:
parent
ca26a712c3
commit
bb04a40044
14 changed files with 286 additions and 50 deletions
|
@ -20,25 +20,31 @@ services:
|
|||
- celery_worker
|
||||
networks:
|
||||
- main
|
||||
rabbitmq:
|
||||
redis:
|
||||
image: redis
|
||||
env_file: .env
|
||||
image: rabbitmq:latest
|
||||
ports:
|
||||
- "6379:6379"
|
||||
networks:
|
||||
- main
|
||||
ports:
|
||||
- "5672:5672"
|
||||
restart: on-failure
|
||||
celery_worker:
|
||||
env_file: .env
|
||||
build: .
|
||||
networks:
|
||||
- main
|
||||
command: celery -A fedireads worker -l info
|
||||
command: celery -A fr_celery worker -l info
|
||||
volumes:
|
||||
- .:/app
|
||||
depends_on:
|
||||
- db
|
||||
- rabbitmq
|
||||
- redis
|
||||
restart: on-failure
|
||||
flower:
|
||||
image: mher/flower
|
||||
env_file: .env
|
||||
ports:
|
||||
- "5555:5555"
|
||||
restart: on-failure
|
||||
volumes:
|
||||
pgdata:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue