diff --git a/docker-compose-prod.yml b/docker-compose-prod.yml
index 8de915488bad2a74c95f9e4f9d61a38c59ae8cbf..947c43027a0da51915328e97f2c31e6a7caaff9b 100755
--- a/docker-compose-prod.yml
+++ b/docker-compose-prod.yml
@@ -54,7 +54,7 @@ services:
       - "-c"
       - "shared_buffers=2GB"
   redis:
-    image: redis
+    image: redis:7.0.7
     container_name: drugstone_redis
     restart: always
     command: ["redis-server"]
diff --git a/docker-compose.yml b/docker-compose.yml
index d98807febe8521b04b021502d07e3e2de9ce1bb1..0b285adb1c0c876bdcc3a06ce301d9c452f25960 100755
--- a/docker-compose.yml
+++ b/docker-compose.yml
@@ -22,7 +22,7 @@ services:
       - db
       - redis
   db:
-    image: postgres
+    image: postgres:14 
     container_name: drugstone_postgres
     restart: always
     hostname: drugstone_postgres