Skip to content

Commit

Permalink
SPD: Add healthchecks
Browse files Browse the repository at this point in the history
  • Loading branch information
quartje committed Jan 8, 2024
1 parent 4a7d34c commit a26badb
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions roles/spdashboard/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,12 +26,17 @@
pull: true
restart_policy: "always"
networks:
- name: "spdashboard"
- name: "loadbalancer"
labels:
traefik.http.routers.spdashboard.rule: "Host(`{{ spdashboard_domain }}`)"
traefik.http.routers.spdashboard.tls: "true"
traefik.enable: "true"
healthcheck:
test: ["CMD", "curl", "--fail" , "http://localhost" ]
interval: 10s
timeout: 10s
retries: 3
start_period: 10s


- name: Create the php-fpm container
Expand All @@ -42,4 +47,10 @@
pull: true
restart_policy: "always"
networks:
- name: "spdashboard"
- name: "loadbalancer"
healthcheck:
test: ["CMD", "cgi-fcgi", "-bind" , "-connect", "127.0.0.1:9000" ]
interval: 10s
timeout: 10s
retries: 3
start_period: 10s

0 comments on commit a26badb

Please sign in to comment.