diff --git a/admin/Dockerfile b/admin/Dockerfile index 816503d..d282960 100644 --- a/admin/Dockerfile +++ b/admin/Dockerfile @@ -1,8 +1,8 @@ # Admin Dockerfile - Vue 3 Admin Dashboard FROM node:20-alpine -# Install git for npm dependencies -RUN apk add --no-cache git +# Install git and wget for npm dependencies and health checks +RUN apk add --no-cache git wget # Set working directory WORKDIR /app diff --git a/client/Dockerfile b/client/Dockerfile index 0a476a1..ca2a123 100644 --- a/client/Dockerfile +++ b/client/Dockerfile @@ -1,8 +1,8 @@ # Client Dockerfile - Vue 3 Client UI FROM node:20-alpine -# Install git for npm dependencies -RUN apk add --no-cache git +# Install git and wget for npm dependencies and health checks +RUN apk add --no-cache git wget # Set working directory WORKDIR /app diff --git a/docker-compose.yml b/docker-compose.yml index a93b163..5694b23 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -14,7 +14,7 @@ services: - snatchgame-network restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:2567/health"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:2567/health"] interval: 30s timeout: 10s retries: 3 @@ -36,7 +36,7 @@ services: - snatchgame-network restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:3000/health"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3000/health"] interval: 30s timeout: 10s retries: 3 @@ -58,7 +58,7 @@ services: - snatchgame-network restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:3001/health"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:3001/health"] interval: 30s timeout: 10s retries: 3 diff --git a/server/Dockerfile b/server/Dockerfile index 650882a..e3cf54e 100644 --- a/server/Dockerfile +++ b/server/Dockerfile @@ -1,8 +1,8 @@ # Server Dockerfile - Colyseus Server FROM node:20-alpine -# Install git for npm dependencies -RUN apk add --no-cache git +# Install git and wget for npm dependencies and health checks +RUN apk add --no-cache git wget # Set working directory WORKDIR /app