Skip to content

Commit 2782dec

Browse files
Merge pull request #35 from GeoNode/redis
Switch rabbitmq with redis
2 parents 0265074 + 50d4575 commit 2782dec

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

.env.sample

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,8 @@ GEODATABASE_URL=postgis://geonode_demo_data:{geodbpwd}@db:5432/geonode_demo_data
4444
GEONODE_DB_CONN_MAX_AGE=0
4545
GEONODE_DB_CONN_TOUT=5
4646
DEFAULT_BACKEND_DATASTORE=datastore
47-
BROKER_URL=amqp://guest:guest@rabbitmq:5672/
47+
BROKER_URL=redis://redis:6379/0
48+
CELERY_RESULT_BACKEND=redis://redis:6379/1
4849
CELERY_BEAT_SCHEDULER=celery.beat:PersistentScheduler
4950
ASYNC_SIGNALS=True
5051

docker-compose.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -168,11 +168,11 @@ services:
168168
# - "5432:5432"
169169

170170
# Vanilla RabbitMQ service. This is needed by celery
171-
rabbitmq:
172-
image: rabbitmq:3-alpine
173-
container_name: rabbitmq4${COMPOSE_PROJECT_NAME}
171+
redis:
172+
image: redis:7-alpine
173+
container_name: redis4${COMPOSE_PROJECT_NAME}
174174
volumes:
175-
- rabbitmq:/var/lib/rabbitmq
175+
- redisdata:/data
176176
restart: unless-stopped
177177

178178
volumes:
@@ -194,5 +194,5 @@ volumes:
194194
name: ${COMPOSE_PROJECT_NAME}-data
195195
tmp:
196196
name: ${COMPOSE_PROJECT_NAME}-tmp
197-
rabbitmq:
198-
name: ${COMPOSE_PROJECT_NAME}-rabbitmq
197+
redisdata:
198+
name: ${COMPOSE_PROJECT_NAME}-redisdata

0 commit comments

Comments
 (0)