diff --git a/tasks/app.yml b/tasks/app.yml
index 3bffd990c8b328529c8edd7e12a54c858c7c6160..6f6ca26573bffe42614cceccaac7911dea54e90a 100644
--- a/tasks/app.yml
+++ b/tasks/app.yml
@@ -27,8 +27,9 @@
         owner: root
         group: root
         mode: 0600
-      notify:
-        - Init Borg App
+      # @todo at this point, docker compose project is not running yet.
+      #notify:
+      #  - Init Borg App
 
     - name: SSH Config
       copy:
diff --git a/templates/app.yaml b/templates/app.yaml
index 01f7a22d35f608d680d741430de6b34e811c8baf..c7d76c47aeccf89934d7c10bc2a0a8d59dc55e2b 100644
--- a/templates/app.yaml
+++ b/templates/app.yaml
@@ -30,6 +30,7 @@ consistency:
         - repository
         - archives
 hooks:
+{% if application_db is defined %}
     mysql_databases:
         - name: '{{ application_db }}'
           hostname: db
@@ -37,6 +38,7 @@ hooks:
           username: '{{ application_db }}'
           password: '{{ application_db }}'
           options: '--skip-comments --no-tablespaces'
+{% endif %}
     before_backup:
         - echo "`date` - Starting backup"
     after_backup: