services: team-card-web: build: . container_name: team-card-web restart: unless-stopped env_file: - .env environment: TZ: Asia/Shanghai ports: - "8001:8000" volumes: - ./data:/app/data healthcheck: test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/api/health', timeout=5).read()"] interval: 30s timeout: 10s retries: 3 start_period: 10s