mirror of
https://github.com/cnlimiter/codex-register.git
synced 2026-06-26 01:31:47 +08:00
feat: 添加 Docker 支持及部署教程
This commit is contained in:
18
docker-compose.yml
Normal file
18
docker-compose.yml
Normal 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
|
||||
Reference in New Issue
Block a user