Skip to content

Commit 8468774

Browse files
committed
Added wget to replace curl for Docker container healthcheck
1 parent 2cc2a17 commit 8468774

File tree

3 files changed

+5
-7
lines changed

3 files changed

+5
-7
lines changed

docker-compose.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ services:
5555
environment:
5656
- WAIT_HOSTS=mariadb:${DATABASE_PORT}
5757
healthcheck:
58-
test: curl -f http://localhost:3000
58+
test: wget -O - http://localhost:3000
5959
retries: 3
6060
timeout: 5s
6161
build:

docker/Dockerfile.development

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
# https://hub.docker.com/_/node
55
FROM node:lts-alpine
66

7-
# Add cURL for health check, OpenSSL for generating random secret
8-
# and SuperCronic for cronjobs
9-
RUN apk update && apk add --no-cache curl openssl supercronic
7+
# Add OpenSSL for generating random secret and SuperCronic for cronjobs
8+
RUN apk update && apk add --no-cache openssl supercronic
109

1110
# Set the working directory to the website files
1211
WORKDIR /usr/src/app

docker/Dockerfile.production

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
# https://hub.docker.com/_/node
55
FROM node:lts-alpine
66

7-
# Add cURL for health check, OpenSSL for generating random secret
8-
# and SuperCronic for cronjobs
9-
RUN apk update && apk add --no-cache curl openssl supercronic
7+
# Add OpenSSL for generating random secret and SuperCronic for cronjobs
8+
RUN apk update && apk add --no-cache openssl supercronic
109

1110
# Set the working directory to the website files
1211
WORKDIR /usr/src/app

0 commit comments

Comments
 (0)