services:
  lingma-proxy:
    build:
      context: .
    container_name: lingma-proxy
    env_file:
      - .env
    ports:
      - "${LINGMA_PROXY_PORT:-8095}:8095"
    volumes:
      - ./data:/app/data
      - ./secrets:/secrets:ro
    restart: unless-stopped
    healthcheck:
      test:
        [
          "CMD",
          "sh",
          "-c",
          "wget -q -O - http://127.0.0.1:8095/runtime/status | grep -q '\"ok\":true'"
        ]
      interval: 30s
      timeout: 5s
      retries: 3
      start_period: 20s
