From dc05d87b4479cc628503a7c1025f89a21011d29f Mon Sep 17 00:00:00 2001 From: sadnub Date: Sat, 2 Apr 2022 08:29:18 -0400 Subject: [PATCH] add redis volume back --- .devcontainer/docker-compose.yml | 6 +++++- docker/docker-compose.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/.devcontainer/docker-compose.yml b/.devcontainer/docker-compose.yml index b1a2c247..ad1aae16 100644 --- a/.devcontainer/docker-compose.yml +++ b/.devcontainer/docker-compose.yml @@ -120,8 +120,10 @@ services: container_name: trmm-redis-dev restart: always user: 1000:1000 - command: chown -R 1000 /data && redis-server + command: redis-server image: redis:6.0-alpine + volumes: + - redis-data-dev:/data networks: dev: aliases: @@ -151,6 +153,7 @@ services: volumes: - tactical-data-dev:/opt/tactical - mesh-data-dev:/meshcentral-data + - redis-data-dev:/redis/data - mongo-dev-data:/mongo/data/db - ..:/workspace:cached @@ -233,6 +236,7 @@ volumes: postgres-data-dev: null mongo-dev-data: null mesh-data-dev: null + redis-data-dev: null networks: dev: diff --git a/docker/docker-compose.yml b/docker/docker-compose.yml index ec280738..46e7274f 100644 --- a/docker/docker-compose.yml +++ b/docker/docker-compose.yml @@ -18,6 +18,7 @@ volumes: postgres_data: null mongo_data: null mesh_data: null + redis_data: null services: # postgres database for api service @@ -39,8 +40,10 @@ services: container_name: trmm-redis image: redis:6.0-alpine user: 1000:1000 - command: chown -R 1000 /data && redis-server + command: redis-server restart: always + volumes: + - redis_data:/data networks: - redis @@ -69,6 +72,7 @@ services: - tactical_data:/opt/tactical - mesh_data:/meshcentral-data - mongo_data:/mongo/data/db + - redis_data:/redis/data # nats tactical-nats: