Outline: add postgres health check

This commit is contained in:
2025-12-14 17:58:04 +03:00
parent 7b81858af6
commit 78bee84061
3 changed files with 5 additions and 1 deletions

View File

@@ -76,6 +76,10 @@ services:
networks: networks:
- "outline_network" - "outline_network"
- "monitoring_network" - "monitoring_network"
healthcheck:
test: ["CMD", "pg_isready", "--username={{ outline_postgres_user }}", "--dbname={{ outline_postgres_database }}"]
interval: 10s
start_period: 30s
networks: networks:
outline_network: outline_network:

View File

@@ -49,7 +49,7 @@
- name: "Copy backup script" - name: "Copy backup script"
ansible.builtin.template: ansible.builtin.template:
src: "./files/{{ app_name }}/backup.sh.j2" src: "./files/{{ app_name }}/backup.template.sh"
dest: "{{ base_dir }}/backup.sh" dest: "{{ base_dir }}/backup.sh"
owner: "{{ app_user }}" owner: "{{ app_user }}"
group: "{{ app_user }}" group: "{{ app_user }}"