Run local redis in docker

That feels like a bit less of a hack
This commit is contained in:
Jake Howard 2022-07-13 08:28:45 +01:00
parent 310de1acf8
commit eae00318aa
Signed by: jake
GPG key ID: 57AFB45680EDD477
2 changed files with 8 additions and 2 deletions

View file

@ -2,5 +2,5 @@ web: ./manage.py runserver
watch-js: npm run build:js -- --watch
watch-css: npm run build:css -- --watch
watch-contrib: ./scripts/copy-npm-contrib.sh; while inotifywait -e modify ./scripts/copy-npm-contrib.sh; do ./scripts/copy-npm-contrib.sh; done
redis: redis-server
rqworker: ./manage.py rqworker --with-scheduler
docker: docker-compose -f docker/dev/docker-compose.yml up
rqworker: sleep 5 && ./manage.py rqworker --with-scheduler

View file

@ -0,0 +1,6 @@
version: '3.7'
services:
redis:
image: redis:6.0
ports:
- 127.0.0.1:6379:6379