services: loongyan: build: context: . dockerfile: Dockerfile image: loongyan:latest container_name: loongyan ports: - "8080:8080" volumes: - ./data:/app/data - ./cache:/app/cache environment: - PORT=8080 - DATA_DIR=/app/data - CACHE_DIR=/app/cache restart: unless-stopped healthcheck: test: ["CMD", "curl", "-f", "http://localhost:8080/api/v1/"] interval: 30s timeout: 10s retries: 3 start_period: 10s