services:
  warpbox-dev:
    build:
      context: .
      dockerfile: Dockerfile
    image: warpbox-dev:local
    env_file:
      - .env
    environment:
      WARPBOX_ADDR: ":8080"
      WARPBOX_DATA_DIR: /data
      WARPBOX_STATIC_DIR: /app/static
      WARPBOX_TEMPLATE_DIR: /app/templates
    ports:
      - "8080:8080"
    volumes:
      - ./data:/data:Z
    restart: unless-stopped
    healthcheck:
      test: ["CMD-SHELL", "wget -qO- http://127.0.0.1:8080/health >/dev/null || exit 1"]
      interval: 30s
      timeout: 3s
      start_period: 10s
      retries: 3
