0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-03-17 11:55:08 +01:00

Healthcheck moved to service_started for now

This commit is contained in:
Arne Tarara 2024-01-01 09:52:13 +01:00
parent 7ce555bae0
commit a13b484079
No known key found for this signature in database
GPG key ID: 2540198A4079785B
24 changed files with 40 additions and 33 deletions

View file

@ -41,7 +41,8 @@ services:
- ./nginx.conf:/etc/nginx/nginx.conf:ro - ./nginx.conf:/etc/nginx/nginx.conf:ro
depends_on: depends_on:
- app - app
healthcheck: # healthcheck:
test: ["curl", "-f", "http://nc"] # test: curl -f http://nc
interval: "1s" # interval: "1h" # effectively turns repeated healthchecks during runtime off
# start-period: "1s" # Not yet supported. Will come with Docker CE 25.0
# start-interval: "1s" # Not yet supported. Will come with Docker CE 25.0

View file

@ -31,6 +31,8 @@ services:
- MYSQL_DATABASE=nextcloud - MYSQL_DATABASE=nextcloud
- MYSQL_USER=nextcloud - MYSQL_USER=nextcloud
- MYSQL_HOST=db - MYSQL_HOST=db
healthcheck: # healthcheck:
test: ["curl", "-f", "http://nc"] # test: curl -f http://nc
interval: "1s" # interval: "1h" # effectively turns repeated healthchecks during runtime off
# start-period: "1s" # Not yet supported. Will come with Docker CE 25.0
# start-interval: "1s" # Not yet supported. Will come with Docker CE 25.0

View file

@ -29,6 +29,8 @@ services:
- POSTGRES_DB=nextcloud - POSTGRES_DB=nextcloud
- POSTGRES_USER=nextcloud - POSTGRES_USER=nextcloud
- POSTGRES_HOST=db - POSTGRES_HOST=db
healthcheck: # healthcheck:
test: ["curl", "-f", "http://nc"] # test: curl -f http://nc
interval: "1s" # interval: "1h" # effectively turns repeated healthchecks during runtime off
# start-period: "1s" # Not yet supported. Will come with Docker CE 25.0
# start-interval: "1s" # Not yet supported. Will come with Docker CE 25.0

View file

@ -8,6 +8,8 @@ services:
- 8080:80 - 8080:80
#volumes: #volumes:
# - nextcloud:/var/www/html # This is the usual way of using nextcloud in a container, but we do not need persistent data storage for benchmarking # - nextcloud:/var/www/html # This is the usual way of using nextcloud in a container, but we do not need persistent data storage for benchmarking
healthcheck: # healthcheck:
test: ["curl", "-f", "http://nc"] # test: curl -f http://nc
interval: "1s" # interval: "1h" # effectively turns repeated healthchecks during runtime off
# start-period: "1s" # Not yet supported. Will come with Docker CE 25.0
# start-interval: "1s" # Not yet supported. Will come with Docker CE 25.0

View file

@ -9,7 +9,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -9,7 +9,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -9,7 +9,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -9,7 +9,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -9,7 +9,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -9,7 +9,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -9,7 +9,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment:

View file

@ -12,7 +12,7 @@ services:
image: greencoding/gcb_playwright:v3 image: greencoding/gcb_playwright:v3
depends_on: depends_on:
nc: nc:
condition: service_healthy condition: service_started # change to service_healthy when Docker CE 25.0 is released which supports start-interval
volumes: volumes:
- /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode - /tmp/.X11-unix:/tmp/.X11-unix # for debugging in non-headless mode
environment: environment: