try to fix portainer issue

This commit is contained in:
2025-06-02 21:55:38 +02:00
parent 44fd8433a1
commit 6b0012c423
2 changed files with 3 additions and 6 deletions

View File

@@ -5,6 +5,7 @@ RUN apt-get update && apt-get install -y \
build-essential \ build-essential \
libpq-dev \ libpq-dev \
curl \ curl \
wget \
netcat-traditional \ netcat-traditional \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*

View File

@@ -1,5 +1,3 @@
version: '3.8'
services: services:
web: web:
build: . build: .
@@ -23,7 +21,7 @@ services:
condition: service_healthy condition: service_healthy
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:5000/health"] test: ["CMD", "wget", "--no-verbose", "--tries=1", "--spider", "http://localhost:5000/health"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3
@@ -88,6 +86,4 @@ services:
volumes: volumes:
postgres_data: postgres_data:
name: ${COMPOSE_PROJECT_NAME:-default}_postgres_data uploads:
uploads:
name: ${COMPOSE_PROJECT_NAME:-default}_uploads