diff --git a/app/config/variables.php b/app/config/variables.php index 3da5a21e2..ae49a968a 100644 --- a/app/config/variables.php +++ b/app/config/variables.php @@ -151,4 +151,10 @@ return [ 'required' => false, 'question' => '', ], + [ + 'name' => '_APP_MAINTENANCE_INTERVAL', + 'default' => '86400', + 'required' => false, + 'question' => '', + ], ]; \ No newline at end of file diff --git a/app/views/install/compose.phtml b/app/views/install/compose.phtml index a97cd7882..bf5512b41 100644 --- a/app/views/install/compose.phtml +++ b/app/views/install/compose.phtml @@ -251,6 +251,27 @@ services: - _APP_SMTP_SECURE - _APP_SMTP_USERNAME - _APP_SMTP_PASSWORD + + appwrite-maintenance: + entrypoint: maintenance + container_name: appwrite-maintenance + build: + context: . + restart: unless-stopped + networks: + - appwrite + depends_on: + - redis + environment: + - _APP_ENV + - _APP_REDIS_HOST + - _APP_REDIS_PORT + - _APP_MAINTENANCE_INTERVAL + - _APP_DB_HOST + - _APP_DB_PORT + - _APP_DB_SCHEMA + - _APP_DB_USER + - _APP_DB_PASS appwrite-schedule: image: appwrite/appwrite: