- 塔罗牌
- 生辰八字
- 姓名五格
- 周公解梦
- 起名
- 梅花易数
- 姻缘 @alongLFB
services:
chatgpt-tarot-divination:
image: ghcr.io/dreamhunter2333/chatgpt-tarot-divination:latest
container_name: chatgpt-tarot-divination
restart: always
ports:
- 8000:8000
environment:
- api_key=sk-xxx
# - api_base=https://api.openai.com/v1 # optional
# - model=gpt-3.5-turbo # optional
# - rate_limit=10/minute # optional
# - user_rate_limit=600/hour # optional
- github_client_id=xxx
- github_client_secret=xxx
- jwt_secret=secret
- ad_client=ca-pub-xxx
- ad_slot=123
创建 .env
文件,填入如下内容, api_key
为必填项, 其余为可选项
api_key=sk-xxxx
api_base=https://api.openai.com/v1
github_client_id=xxx
github_client_secret=xxx
ad_client=ca-pub-xxx
ad_slot=123
RUN
cd frontend
pnpm install
pnpm build --emptyOutDir
cd ..
rm -r dist
cp -r frontend/dist/ dist
python3 -m venv ./venv
./venv/bin/python3 -m pip install -r requirements.txt
./venv/bin/python3 main.py