https://github.com/michaellwest/docker-wrangler-node
https://github.com/michaellwest/docker-wrangler-node
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/michaellwest/docker-wrangler-node
- Owner: michaellwest
- Created: 2022-05-23T17:38:13.000Z (about 3 years ago)
- Default Branch: master
- Last Pushed: 2022-05-23T19:44:08.000Z (almost 3 years ago)
- Last Synced: 2025-01-20T21:23:11.435Z (4 months ago)
- Language: Dockerfile
- Size: 1.95 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
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=
```