# Loopgate on your laptop, from the published image; guides/laptop.md says every step.
name: loopgate-laptop
services:
  loopgate:
    image: ghcr.io/vigneshgce/loopgate-runner:aa55eed@sha256:0236203514f3c95885512af12d4dfc83d4833e425d35be25c9fb8dfa4a2a76d2
    # Built for x86; an Apple Silicon Mac runs it under emulation.
    platform: linux/amd64
    command: [loopgate, daemon]
    restart: unless-stopped
    init: true
    environment:
      LOOPGATE_UI_PORT: 4312
      # Inside the container only; the port below is published to this laptop's loopback alone.
      LOOPGATE_UI_HOST: 0.0.0.0
      LOOPGATE_REPOS_DIR: /repos
      # Only real engines on a laptop; the fake one is for Loopgate's own tests.
      LOOPGATE_FAKE_HARNESS: 0
    ports:
      - 127.0.0.1:4312:4312
    volumes:
      - data:/data
      - repos:/repos
      - home:/home/node
      # Optional: a folder of your own code, shown as /repos/code when you add a workspace.
      # - ~/code:/repos/code
volumes:
  data:
  repos:
  home:
