From 4099dbf52f4e55cce388f63515423711af4b6c04 Mon Sep 17 00:00:00 2001 From: Fengqing Liu Date: Sun, 19 Oct 2025 18:28:05 +1100 Subject: [PATCH] docker --- Dockerfile | 1 - docker-compose.yml | 17 ----------------- 2 files changed, 18 deletions(-) diff --git a/Dockerfile b/Dockerfile index d154b5d..493d2ef 100644 --- a/Dockerfile +++ b/Dockerfile @@ -20,7 +20,6 @@ LABEL org.opencontainers.image.created="${BUILD_DATE}" \ # Set environment variables ENV PYTHONUNBUFFERED=1 \ PYTHONDONTWRITEBYTECODE=1 \ - DOCKER_ENV=1 \ PORT=8080 # Set working directory diff --git a/docker-compose.yml b/docker-compose.yml index feb7f02..18fb153 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -11,21 +11,4 @@ services: environment: # Set timezone (optional, defaults to UTC) - TZ=UTC - # Docker environment flag - - DOCKER_ENV=1 restart: unless-stopped - healthcheck: - test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8080/api/status')"] - interval: 30s - timeout: 3s - retries: 3 - start_period: 10s - # Optional: Limit resources - # deploy: - # resources: - # limits: - # cpus: '1' - # memory: 512M - # reservations: - # cpus: '0.5' - # memory: 256M