services:
  bricktracker:
    container_name: BrickTracker
    restart: unless-stopped
    # image: gitea.baerentsen.space/frederikbaerentsen/bricktracker:dev
    build: .
    ports:
      - "3334:3333"
    volumes:
      - ./local:/app/data  # Changed from ./local to ./data for consistency
    environment:
      - BK_DEBUG=true
    # For local development, place .env in data/ folder
    # The app automatically detects and uses data/.env (no env_file needed)
    # Uncomment below only if you keep .env in root for backward compatibility
    # env_file: .env
