An open API service indexing awesome lists of open source software.

https://github.com/michaellwest/docker-wrangler-node


https://github.com/michaellwest/docker-wrangler-node

Last synced: 2 months ago
JSON representation

Awesome Lists containing this project

README

        

# Docker Demo for Cloudflare Wrangler

Run from the terminal:

```bash
docker exec -it wrangler-node-1 cmd
```

Following the [Getting Started guide](https://developers.cloudflare.com/workers/get-started/guide/) you can create and start working with your new project:

```bash
wrangler init my-worker
cd my-worker
```

Update your **wrangler.toml** with the following settings to allow the proper mapping of traffic from outside the container.

```toml
[dev]
ip = "0.0.0.0"
```

Since you are running from a console in the container, you'll need to create an API token before proceeding.

Open the .env and update your Account ID and API Token.

```text
CLOUDFLARE_ACCOUNT_ID=
CLOUDFLARE_API_TOKEN=
```