Unverified Commit f6b91340 authored by Tom Moulard's avatar Tom Moulard
Browse files

netcloud: adding healthchecks

parent 07114915
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -10,6 +10,11 @@ services:
    networks:
      - 'srv'
    restart: always
    healthcheck:
      test: ['CMD', 'curl', '0.0.0.0:80']
      interval: 30s
      timeout: 10s
      retries: 5
    labels:
      - 'traefik.enable=true'
      - 'traefik.frontend.rule=Host:cloud.${SITE}'
@@ -26,5 +31,10 @@ services:
      - 'MYSQL_DATABASE=nextcloud'
      - 'MYSQL_USER=nextcloud'
    restart: always
    healthcheck:
      test: ['CMD', 'mysqlcheck', '--all-databases', '-ppass']
      interval: 30s
      timeout: 10s
      retries: 5
    labels:
      - 'traefik.enable=false'