mirror of
https://github.com/Moe-Sakura/Wrangler-API.git
synced 2026-03-22 05:29:45 +08:00
251221
This commit is contained in:
19
compose.yml
Normal file
19
compose.yml
Normal file
@@ -0,0 +1,19 @@
|
||||
services:
|
||||
workers:
|
||||
image: cf-workers-dev:latest
|
||||
build:
|
||||
context: .
|
||||
dockerfile: Dockerfile
|
||||
container_name: cf-workers-dev
|
||||
ports:
|
||||
- "8787:8787" # 本地访问 Workers 预览
|
||||
- "8976:8976" # 可选:Wrangler 的 dashboard(如果用了 --inspect)
|
||||
volumes:
|
||||
- .:/app # 代码实时挂载,改动无需重启
|
||||
- podman-node-modules:/app/node_modules # 持久化 node_modules,避免重复安装
|
||||
command:
|
||||
["npx", "wrangler", "dev", "--local", "--ip", "0.0.0.0", "--port", "8787"]
|
||||
restart: unless-stopped
|
||||
|
||||
volumes:
|
||||
podman-node-modules:
|
||||
Reference in New Issue
Block a user