Reduce docker restart latency

This commit is contained in:
2026-03-07 02:15:57 +01:00
parent a1027421a3
commit c0a32b50f1
2 changed files with 10 additions and 7 deletions

View File

@@ -30,4 +30,4 @@ ENV PORT=3000
ENV HOST=0.0.0.0
EXPOSE 3000
CMD ["bun", "build/index.js"]
CMD ["bun", "run", "start"]

View File

@@ -12,13 +12,15 @@ services:
- "127.0.0.1:5432:5432" # Only accessible from host
healthcheck:
test: ["CMD-SHELL", "pg_isready -U vash -d vash"]
interval: 10s
timeout: 5s
retries: 5
interval: 2s
timeout: 3s
retries: 10
start_period: 2s
app:
build: .
restart: unless-stopped
stop_grace_period: 2s
depends_on:
db:
condition: service_healthy
@@ -53,9 +55,10 @@ services:
- umamidata:/var/lib/postgresql/data
healthcheck:
test: ["CMD-SHELL", "pg_isready -U umami -d umami"]
interval: 10s
timeout: 5s
retries: 5
interval: 2s
timeout: 3s
retries: 10
start_period: 2s
umami:
image: ghcr.io/umami-software/umami:postgresql-latest