From 51659a8d2def9fcadf8c3f7ae2c988a3124a4f80 Mon Sep 17 00:00:00 2001 From: Girish Ramakrishnan Date: Thu, 7 Sep 2017 19:53:09 -0700 Subject: [PATCH] set label on the redis container this ensures that redis is stopped when app is stopped and also helps identifying app related containers easily --- src/addons.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/addons.js b/src/addons.js index 2207284ba..bddcf47e8 100644 --- a/src/addons.js +++ b/src/addons.js @@ -645,6 +645,7 @@ function setupRedis(app, options, callback) { const tag = infra.images.redis.tag, redisName = 'redis-' + app.id; const cmd = `docker run --restart=always -d --name=${redisName} \ + --label=appId=${app.id} --label=location=${app.location} \ --net cloudron \ --net-alias ${redisName} \ -m ${memoryLimit/2} \