Skip to content

Run on your laptop, Docker, or Railway

Run Lookalyke on your laptop for everyday development. Docker gives a team or CI job a consistent image. Railway gives a team one shared address for its test instance. Keep this instance separate from production and use synthetic data.

Install and build the source, then run the CLI without demo flags.

Terminal window
node packages/server/dist/cli.js

The server listens on 127.0.0.1:4100 and keeps SQLite data in .lookalyke/. To back it up, stop the server and copy that directory. Use --memory for an ephemeral run.

Build and run the image from the Lookalyke product checkout.

Terminal window
docker build -t lookalyke .
docker run -p 127.0.0.1:4100:4100 -v lookalyke:/data lookalyke

Open 127.0.0.1:4100 and create the owner account. The image listens on a non-loopback address inside the container and turns on sign-in. The named volume keeps the database and admin token between container runs.

For a webhook handler on the host using Docker Desktop, use host.docker.internal in the destination. Set LOOKALYKE_ALLOWED_WEBHOOK_HOSTS=host.docker.internal:8787 if the handler is on port 8787. On Linux, Docker may also need --add-host=host.docker.internal:host-gateway when you start the container.

  1. Create a Railway service in a dedicated development project from the Lookalyke GitHub repository. Railway uses its Dockerfile and existing health-check configuration.
  2. Mount a persistent volume at /data, then generate a public service domain.
  3. Set LOOKALYKE_PUBLIC_URL=https://${{RAILWAY_PUBLIC_DOMAIN}} in the Railway service variables. For outbound test webhooks, add specific destinations to LOOKALYKE_ALLOWED_WEBHOOK_HOSTS.
  4. Deploy and open the address right away. The first visit creates the owner account. Use Setup or the service’s Connect tab to get development credentials.

A Railway instance cannot reach a webhook handler bound only to your laptop’s loopback interface. For local handlers, run Lookalyke on the same machine or use an address reachable from the deployed instance. See the Railway guide in the product repository for private networking and CLI authentication.