From eae00318aa06150206d4411ee9f4c3376b6238b7 Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Wed, 13 Jul 2022 08:28:45 +0100 Subject: [PATCH] Run local redis in docker That feels like a bit less of a hack --- Procfile | 4 ++-- docker/dev/docker-compose.yml | 6 ++++++ 2 files changed, 8 insertions(+), 2 deletions(-) create mode 100644 docker/dev/docker-compose.yml diff --git a/Procfile b/Procfile index 14d1ea0..cdc7393 100644 --- a/Procfile +++ b/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 diff --git a/docker/dev/docker-compose.yml b/docker/dev/docker-compose.yml new file mode 100644 index 0000000..36af809 --- /dev/null +++ b/docker/dev/docker-compose.yml @@ -0,0 +1,6 @@ +version: '3.7' +services: + redis: + image: redis:6.0 + ports: + - 127.0.0.1:6379:6379