1diff --git a/app/AppKernel.php b/app/AppKernel.php
2index 61b734e06..d25d1aaa3 100644
3--- a/app/AppKernel.php
4+++ b/app/AppKernel.php
5@@ -62,14 +62,19 @@ class AppKernel extends Kernel
6 return $bundles;
7 }
8
9+ public function getProjectDir()
10+ {
11+ return getenv('WALLABAG_DATA') ?: dirname(__DIR__);
12+ }
13+
14 public function getCacheDir()
15 {
16- return dirname(__DIR__) . '/var/cache/' . $this->getEnvironment();
17+ return $this->getProjectDir() . '/var/cache/' . $this->getEnvironment();
18 }
19
20 public function getLogDir()
21 {
22- return dirname(__DIR__) . '/var/logs';
23+ return $this->getProjectDir() . '/var/logs';
24 }
25
26 public function registerContainerConfiguration(LoaderInterface $loader)