Run local redis in docker
That feels like a bit less of a hack
This commit is contained in:
parent
310de1acf8
commit
eae00318aa
2 changed files with 8 additions and 2 deletions
4
Procfile
4
Procfile
|
@ -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
|
||||
|
|
6
docker/dev/docker-compose.yml
Normal file
6
docker/dev/docker-compose.yml
Normal file
|
@ -0,0 +1,6 @@
|
|||
version: '3.7'
|
||||
services:
|
||||
redis:
|
||||
image: redis:6.0
|
||||
ports:
|
||||
- 127.0.0.1:6379:6379
|
Loading…
Reference in a new issue