Issue resolved after building using separate containers for postgres and redis and removing the "templates/redis.template.yml" line from the app.yml
Issue resolved after building using separate containers for postgres and redis and removing the "templates/redis.template.yml" line from the app.yml