diff --git a/Dockerfile b/Dockerfile index d5bdcce..222d8f7 100644 --- a/Dockerfile +++ b/Dockerfile @@ -5,6 +5,7 @@ RUN apt-get update && apt-get install -y \ build-essential \ libpq-dev \ curl \ + wget \ netcat-traditional \ && rm -rf /var/lib/apt/lists/* diff --git a/docker-compose.yml b/docker-compose.yml index f284953..1a74963 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -1,5 +1,3 @@ -version: '3.8' - services: web: build: . @@ -23,7 +21,7 @@ services: condition: service_healthy restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:5000/health"] + test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/health"] interval: 30s timeout: 10s retries: 3 @@ -88,6 +86,4 @@ services: volumes: postgres_data: - name: ${COMPOSE_PROJECT_NAME:-default}_postgres_data - uploads: - name: ${COMPOSE_PROJECT_NAME:-default}_uploads \ No newline at end of file + uploads: \ No newline at end of file