mirror of
https://github.com/xbgmsharp/postgsail.git
synced 2025-09-17 11:17:46 +00:00
Disable health check for api (postgrest) and app (grafana) containers
Missing wget or curl to run the test locally
This commit is contained in:
@@ -10,6 +10,7 @@ services:
|
|||||||
- TIMESCALEDB_TELEMETRY=off
|
- TIMESCALEDB_TELEMETRY=off
|
||||||
- PGDATA=/var/lib/postgresql/data/pgdata
|
- PGDATA=/var/lib/postgresql/data/pgdata
|
||||||
- TZ=UTC
|
- TZ=UTC
|
||||||
|
network_mode: "host"
|
||||||
ports:
|
ports:
|
||||||
- "5432:5432"
|
- "5432:5432"
|
||||||
volumes:
|
volumes:
|
||||||
@@ -21,7 +22,7 @@ services:
|
|||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d signalk'"]
|
test: ["CMD-SHELL", "sh -c 'pg_isready -U ${POSTGRES_USER} -d signalk'"]
|
||||||
interval: 60s
|
interval: 60s
|
||||||
timeout: 30s
|
timeout: 10s
|
||||||
retries: 5
|
retries: 5
|
||||||
start_period: 100s
|
start_period: 100s
|
||||||
|
|
||||||
@@ -43,6 +44,12 @@ services:
|
|||||||
logging:
|
logging:
|
||||||
options:
|
options:
|
||||||
max-size: 10m
|
max-size: 10m
|
||||||
|
#healthcheck:
|
||||||
|
# test: ["CMD-SHELL", "sh -c 'curl --fail http://localhost:3003/live || exit 1'"]
|
||||||
|
# interval: 60s
|
||||||
|
# timeout: 10s
|
||||||
|
# retries: 5
|
||||||
|
# start_period: 100s
|
||||||
|
|
||||||
app:
|
app:
|
||||||
image: grafana/grafana:latest
|
image: grafana/grafana:latest
|
||||||
@@ -65,12 +72,12 @@ services:
|
|||||||
logging:
|
logging:
|
||||||
options:
|
options:
|
||||||
max-size: 10m
|
max-size: 10m
|
||||||
healthcheck:
|
#healthcheck:
|
||||||
test: ["CMD-SHELL", "sh -c 'curl --fail http://localhost:3000/healthz || exit 1'"]
|
# test: ["CMD-SHELL", "sh -c 'curl --fail http://localhost:3000/healthz || exit 1'"]
|
||||||
interval: 60s
|
# interval: 60s
|
||||||
timeout: 10s
|
# timeout: 10s
|
||||||
retries: 5
|
# retries: 5
|
||||||
start_period: 100s
|
# start_period: 100s
|
||||||
|
|
||||||
volumes:
|
volumes:
|
||||||
data: {}
|
data: {}
|
||||||
|
Reference in New Issue
Block a user