This commit is contained in:
parent
80b80940c6
commit
a0550788ce
|
|
@ -20,10 +20,13 @@ services:
|
||||||
build: ./selenium_django
|
build: ./selenium_django
|
||||||
container_name: selenium-django-container
|
container_name: selenium-django-container
|
||||||
environment:
|
environment:
|
||||||
|
PYTHONUNBUFFERED: 1
|
||||||
CELERY_BROKER_URL: redis://redis:6379/0
|
CELERY_BROKER_URL: redis://redis:6379/0
|
||||||
CELERY_RESULT_BACKEND: redis://redis:6379/0
|
CELERY_RESULT_BACKEND: redis://redis:6379/0
|
||||||
# Django 调用爬虫服务的地址
|
# Django 调用爬虫服务的地址
|
||||||
CRAWL_API_URL: http://47.83.141.164:5001/crawl
|
CRAWL_API_URL: http://47.83.141.164:5001/crawl
|
||||||
|
volumes:
|
||||||
|
- "./selenium_django:/app"
|
||||||
depends_on:
|
depends_on:
|
||||||
- redis
|
- redis
|
||||||
- selenium
|
- selenium
|
||||||
|
|
|
||||||
|
|
@ -4,9 +4,9 @@ from selenium import webdriver
|
||||||
from selenium.webdriver.chrome.service import Service
|
from selenium.webdriver.chrome.service import Service
|
||||||
import os
|
import os
|
||||||
api_info = {
|
api_info = {
|
||||||
"model": "gpt-4.1-2025-04-14",
|
"model": "glm-4.5",
|
||||||
"base_url": "https://api.nuwaapi.com/v1",
|
"base_url": "https://open.bigmodel.cn/api/paas/v4",
|
||||||
"api_key": "sk-gZsDzmPpOh1UpVzLzkh9dP05v0nLv9iR0HCazhlO7ZNZ3Ier"
|
"api_key": "ce39bdd4fcf34ec0aec75072bc9ff988.hAp7HZTVUwy7vImn"
|
||||||
}
|
}
|
||||||
|
|
||||||
# chrome浏览器以及驱动配置
|
# chrome浏览器以及驱动配置
|
||||||
|
|
|
||||||
|
|
@ -7,4 +7,4 @@ celery -A selenium_django worker -l info --pool=solo &
|
||||||
|
|
||||||
# 启动 Django
|
# 启动 Django
|
||||||
echo "Starting Django..."
|
echo "Starting Django..."
|
||||||
exec gunicorn selenium_django.wsgi:application --bind 0.0.0.0:8000
|
exec gunicorn selenium_django.wsgi:application --log-level=info --bind 0.0.0.0:8000
|
||||||
|
|
|
||||||
|
|
@ -28,9 +28,9 @@ CRAWL_API_URL = "http://47.83.141.164:5001/crawl"
|
||||||
|
|
||||||
# 模型api配置
|
# 模型api配置
|
||||||
api_info = {
|
api_info = {
|
||||||
"model": "gpt-4.1-2025-04-14",
|
"model": "glm-4.5",
|
||||||
"base_url": "https://api.nuwaapi.com/v1",
|
"base_url": "https://open.bigmodel.cn/api/paas/v4",
|
||||||
"api_key": "sk-gZsDzmPpOh1UpVzLzkh9dP05v0nLv9iR0HCazhlO7ZNZ3Ier"
|
"api_key": "ce39bdd4fcf34ec0aec75072bc9ff988.hAp7HZTVUwy7vImn"
|
||||||
}
|
}
|
||||||
|
|
||||||
# Quick-start development settings - unsuitable for production
|
# Quick-start development settings - unsuitable for production
|
||||||
|
|
|
||||||
|
|
@ -5,8 +5,8 @@
|
||||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||||
<title>任务调度与知识问答</title>
|
<title>任务调度与知识问答</title>
|
||||||
<!-- 引入 Website 项目的图标库 -->
|
<!-- 引入 Website 项目的图标库 -->
|
||||||
<script src="/src/assets/iconfont.js"></script>
|
<script src="/assets/iconfont.js"></script>
|
||||||
<link rel="stylesheet" href="/src/assets/iconfont.css">
|
<link rel="stylesheet" href="/assets/iconfont.css">
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app"></div>
|
<div id="app"></div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue