https://github.com/jxch-docker/docker-build/tree/main/snowflake
1.3K
services:
snowflake:
image: jxch/snowflake
ports:
- "5000:8000"
environment:
DATACENTER_ID: 1 # 数据中心 ID
WORK_ID: 1 # 工作节点 ID
BUFFER_SIZE: 2000 # 每个号码缓冲池的大小
批量获取号码(post):
curl --location 'http://localhost:5000/ids?count=20'
获取单个号码(get):
curl --location 'http://localhost:5000/id'
Content type
Image
Digest
sha256:1765a65ab…
Size
9.3 MB
Last updated
over 1 year ago
docker pull jxch/snowflake