# Railway

Source: https://zshot-cli.com/reference/docker/railway/
Markdown: https://zshot-cli.com/reference/docker/railway/index.md
Section: [Reference](https://zshot-cli.com/reference/) › [Docker](https://zshot-cli.com/reference/docker/)

Create a [Railway](https://railway.com) service from the **Docker image** source set to `scaleassembly/zshot-server:latest`. Set `ZSHOT_LICENSE` to your key and `ZSHOT_SERVER_TOKEN_AUTH` to a token: Railway serves a public URL, and the API is not built to sit open on the internet. Railway injects `PORT`, which the image binds. Point the health check at `/status` and allow about 1 GB of memory, or 2 GB if it renders video.

## Example

Render through the generated domain with the token:

```sh
curl -H "Authorization: Bearer MY-TOKEN" \
  "https://YOUR-APP.up.railway.app/?url=https://zshot-cli.com/example_assets/hello_zshot/&output_type=png" -o out.png
```

## Related

Flags:

- [`--server-token-auth`](https://zshot-cli.com/reference/flags/server/server-token-auth/)
- [`--server-max-concurrency`](https://zshot-cli.com/reference/flags/server/server-max-concurrency/)

Topics:

- [Server](https://zshot-cli.com/reference/server/)
- [Railway](https://railway.com)

## Navigation

- [Examples](https://zshot-cli.com/examples/)
- [Download](https://zshot-cli.com/download/)
- [Purchase](https://zshot-cli.com/purchase/)
- [Reference](https://zshot-cli.com/reference/)
  - [Formats](https://zshot-cli.com/reference/formats/)
  - [Flags](https://zshot-cli.com/reference/flags/)
  - [Agents](https://zshot-cli.com/reference/agents/)
  - [Configuration](https://zshot-cli.com/reference/configuration/)
  - [Crawling](https://zshot-cli.com/reference/crawling/)
  - [Docker](https://zshot-cli.com/reference/docker/)
    - [Environment](https://zshot-cli.com/reference/docker/environment/)
    - [Hardening](https://zshot-cli.com/reference/docker/hardening/)
    - [Kubernetes](https://zshot-cli.com/reference/docker/kubernetes/)
    - **Railway**
    - [Files](https://zshot-cli.com/reference/docker/files/)
  - [Exit Codes](https://zshot-cli.com/reference/exit_codes/)
  - [Linux](https://zshot-cli.com/reference/linux/)
  - [LLM Connections](https://zshot-cli.com/reference/llm_connections/)
  - [LLM Formatting](https://zshot-cli.com/reference/llm_formatting/)
  - [Local Inputs](https://zshot-cli.com/reference/inputs/)
  - [Navigator](https://zshot-cli.com/reference/navigator/)
  - [Security](https://zshot-cli.com/reference/security/)
  - [Server](https://zshot-cli.com/reference/server/)
  - [Shell completions](https://zshot-cli.com/reference/shell_completions/)
  - [Storage](https://zshot-cli.com/reference/storage/)
  - [Timeouts](https://zshot-cli.com/reference/timeouts/)
  - [Web Bot Auth](https://zshot-cli.com/reference/web_bot_auth/)
- [Support](https://zshot-cli.com/support/)
- [Changelog](https://zshot-cli.com/changelog/)

Site index: https://zshot-cli.com/llms.txt

