Reduce docker restart latency
This commit is contained in:
@@ -30,4 +30,4 @@ ENV PORT=3000
|
|||||||
ENV HOST=0.0.0.0
|
ENV HOST=0.0.0.0
|
||||||
EXPOSE 3000
|
EXPOSE 3000
|
||||||
|
|
||||||
CMD ["bun", "build/index.js"]
|
CMD ["bun", "run", "start"]
|
||||||
|
|||||||
@@ -12,13 +12,15 @@ services:
|
|||||||
- "127.0.0.1:5432:5432" # Only accessible from host
|
- "127.0.0.1:5432:5432" # Only accessible from host
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U vash -d vash"]
|
test: ["CMD-SHELL", "pg_isready -U vash -d vash"]
|
||||||
interval: 10s
|
interval: 2s
|
||||||
timeout: 5s
|
timeout: 3s
|
||||||
retries: 5
|
retries: 10
|
||||||
|
start_period: 2s
|
||||||
|
|
||||||
app:
|
app:
|
||||||
build: .
|
build: .
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
|
stop_grace_period: 2s
|
||||||
depends_on:
|
depends_on:
|
||||||
db:
|
db:
|
||||||
condition: service_healthy
|
condition: service_healthy
|
||||||
@@ -53,9 +55,10 @@ services:
|
|||||||
- umamidata:/var/lib/postgresql/data
|
- umamidata:/var/lib/postgresql/data
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD-SHELL", "pg_isready -U umami -d umami"]
|
test: ["CMD-SHELL", "pg_isready -U umami -d umami"]
|
||||||
interval: 10s
|
interval: 2s
|
||||||
timeout: 5s
|
timeout: 3s
|
||||||
retries: 5
|
retries: 10
|
||||||
|
start_period: 2s
|
||||||
|
|
||||||
umami:
|
umami:
|
||||||
image: ghcr.io/umami-software/umami:postgresql-latest
|
image: ghcr.io/umami-software/umami:postgresql-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user