diff --git a/files/outline/backup.sh.j2 b/files/outline/backup.template.sh similarity index 100% rename from files/outline/backup.sh.j2 rename to files/outline/backup.template.sh diff --git a/files/outline/docker-compose.template.yml b/files/outline/docker-compose.template.yml index a1556c9..44b8bc1 100644 --- a/files/outline/docker-compose.template.yml +++ b/files/outline/docker-compose.template.yml @@ -76,6 +76,10 @@ services: networks: - "outline_network" - "monitoring_network" + healthcheck: + test: ["CMD", "pg_isready", "--username={{ outline_postgres_user }}", "--dbname={{ outline_postgres_database }}"] + interval: 10s + start_period: 30s networks: outline_network: diff --git a/playbook-outline.yml b/playbook-outline.yml index 0f5aa62..ee119ad 100644 --- a/playbook-outline.yml +++ b/playbook-outline.yml @@ -49,7 +49,7 @@ - name: "Copy backup script" ansible.builtin.template: - src: "./files/{{ app_name }}/backup.sh.j2" + src: "./files/{{ app_name }}/backup.template.sh" dest: "{{ base_dir }}/backup.sh" owner: "{{ app_user }}" group: "{{ app_user }}"