完善docker相关配置

This commit is contained in:
xintaofei
2026-03-29 19:23:46 +08:00
parent 85114272de
commit 1cda9aa5f5
4 changed files with 36 additions and 4 deletions

View File

@@ -1,14 +1,19 @@
services:
codeg:
build: .
# Or use a pre-built image:
# image: xintaofei/codeg:latest
ports:
- "3080:3080"
volumes:
- codeg-data:/data
# Mount your project directories (optional):
# - /path/to/projects:/projects
environment:
- CODEG_TOKEN=${CODEG_TOKEN:-}
- CODEG_PORT=3080
- CODEG_HOST=0.0.0.0
restart: unless-stopped
volumes:
codeg-data: