From cda5be65f82a0f6f5a92633fe812190289470f2a Mon Sep 17 00:00:00 2001 From: Mouse Reeve Date: Thu, 15 Apr 2021 14:55:08 -0700 Subject: [PATCH] Persistence for redis images --- docker-compose.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/docker-compose.yml b/docker-compose.yml index 60816cc0..9324b224 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -40,20 +40,26 @@ services: - 8000:8000 redis_activity: image: redis + command: ["redis-server", "--appendonly", "yes"] env_file: .env ports: - 6378:6378 networks: - main restart: on-failure + volumes: + - redis_activity_data:/data redis_broker: image: redis + command: ["redis-server", "--appendonly", "yes"] env_file: .env ports: - 6379:6379 networks: - main restart: on-failure + volumes: + - redis_broker_data:/data celery_worker: env_file: .env build: . @@ -86,5 +92,7 @@ volumes: pgdata: static_volume: media_volume: + redis_broker_data: + redis_activity_data: networks: main: