Files
PTGen/docker-compose.yml
DengDai 644b5aaaf8 init
2025-12-08 14:47:24 +08:00

30 lines
740 B
YAML
Raw Permalink 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:
app:
build: .
container_name: pt-gen-app
ports:
- "8000:8000" # 将主机的 8000 端口映射到容器的 8000 端口
volumes:
- ./configs:/app/configs # 将主机的 configs 目录映射到容器内
environment:
# 如果需要,可以在这里用环境变量覆盖配置
# Pydantic-settings 会自动识别
# 例如PT_GEN_REDIS_HOST=redis
# (注意: pydantic-settings 默认用下划线分割,全大写)
- TZ=Asia/Shanghai
depends_on:
- redis
restart: unless-stopped
redis:
image: "redis:7-alpine"
container_name: pt-gen-redis
volumes:
- redis_data:/data
restart: unless-stopped
volumes:
redis_data: