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.
Run from a checkout
Section titled “Run from a checkout”Install and build the source, then run the CLI without demo flags.
node packages/server/dist/cli.jsThe 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.
Run in Docker
Section titled “Run in Docker”Build and run the image from the Lookalyke product checkout.
docker build -t lookalyke .docker run -p 127.0.0.1:4100:4100 -v lookalyke:/data lookalykeOpen 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.
Deploy on Railway
Section titled “Deploy on Railway”- Create a Railway service in a dedicated development project from the Lookalyke GitHub repository. Railway uses its Dockerfile and existing health-check configuration.
- Mount a persistent volume at
/data, then generate a public service domain. - Set
LOOKALYKE_PUBLIC_URL=https://${{RAILWAY_PUBLIC_DOMAIN}}in the Railway service variables. For outbound test webhooks, add specific destinations toLOOKALYKE_ALLOWED_WEBHOOK_HOSTS. - 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.