Files
codex-register/docker-compose.yml

27 lines
796 B
YAML
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
version: '3.8'
services:
codex-register:
build: .
container_name: codex-register
ports:
- "${APP_PORT:-8000}:8000"
volumes:
- ./data:/app/data
- ./logs:/app/logs
environment:
- PYTHONUNBUFFERED=1
# Web UI 配置(也可在 .env 文件中设置)
- APP_HOST=0.0.0.0
- APP_PORT=${APP_PORT:-8000}
- APP_ACCESS_PASSWORD=${APP_ACCESS_PASSWORD:-admin123}
# 数据库(默认 SQLite如需 PostgreSQL 取消下方注释)
# - APP_DATABASE_URL=postgresql://user:password@db:5432/codex
# HTTP 代理(如需代理取消下方注释)
# - HTTP_PROXY=http://your-proxy:port
# - HTTPS_PROXY=http://your-proxy:port
env_file:
- path: .env
required: false
restart: unless-stopped