feat: 添加 Docker 支持及部署教程

This commit is contained in:
db52
2026-03-16 13:59:02 +08:00
parent 60de39cebd
commit 9e2d4decf2
3 changed files with 99 additions and 0 deletions

18
docker-compose.yml Normal file
View File

@@ -0,0 +1,18 @@
version: '3.8'
services:
codex-register:
build: .
container_name: codex-register
ports:
- "8000:8000"
volumes:
- ./data:/app/data
- ./logs:/app/logs
environment:
- PYTHONUNBUFFERED=1
restart: unless-stopped
# 如果需要代理,取消下面注释并修改地址
# environment:
# - HTTP_PROXY=http://your-proxy:port
# - HTTPS_PROXY=http://your-proxy:port