From 265449e1c3254ee9c3e6fe677273cf1986d569a6 Mon Sep 17 00:00:00 2001 From: "Jose l. Azagra" Date: Wed, 18 Dec 2024 20:11:45 +0100 Subject: [PATCH] Update docker-compose.yaml --- docker-compose.yaml | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/docker-compose.yaml b/docker-compose.yaml index 8e2a921..955ed7e 100644 --- a/docker-compose.yaml +++ b/docker-compose.yaml @@ -1,24 +1,23 @@ --- -version: '3.9' services: cache: image: azagramac/redis:latest container_name: redis privileged: true - network_mode: "host" restart: always - ports: - - '6379:6379' command: sh -c "./redis/init.sh" + environment: + - TZ=Europe/Madrid + ports: + - 6379:6379 volumes: - - cache:/data + - /volume1/docker/redis:/data:rw deploy: resources: limits: - memory: 256M + memory: 512M reservations: memory: 64M -volumes: - cache: - driver: local +networks: + redis: