services:
  ads-bit:
    build: .
    container_name: ads-bit
    network_mode: host
    restart: unless-stopped
    environment:
      - PYTHONUNBUFFERED=1
      - ADSBIT_CONFIG=/app/data/config.json
    volumes:
      # Config persists here; auto-seeded from config.json.example on first run
      # (a directory mount, so a fresh `docker compose up` just works).
      - ./data:/app/data
      # Persist custom sprite uploads
      - ./images:/app/images
      # Persist custom theme backgrounds
      - ./backgrounds:/app/backgrounds
