合并子仓库为普通文件夹
This commit is contained in:
commit
993763aceb
|
@ -0,0 +1,50 @@
|
|||
version: '3.9'
|
||||
|
||||
services:
|
||||
# ---------- Redis Celery Broker ----------
|
||||
redis:
|
||||
image: redis:7
|
||||
container_name: redis
|
||||
ports:
|
||||
- "6380:6379"
|
||||
|
||||
# ---------- 爬虫服务 ----------
|
||||
selenium:
|
||||
build: ./selenium
|
||||
container_name: selenium-crawl-container
|
||||
ports:
|
||||
- "5001:5000"
|
||||
|
||||
# ---------- Django + Celery ----------
|
||||
selenium_django:
|
||||
build: ./selenium_django
|
||||
container_name: selenium-django-container
|
||||
environment:
|
||||
CELERY_BROKER_URL: redis://redis:6379/0
|
||||
CELERY_RESULT_BACKEND: redis://redis:6379/0
|
||||
# Django 调用爬虫服务的地址
|
||||
CRAWL_API_URL: http://47.83.141.164:5001/crawl
|
||||
depends_on:
|
||||
- redis
|
||||
- selenium
|
||||
ports:
|
||||
- "8002:8000"
|
||||
|
||||
# ---------- 前端 Vue ----------
|
||||
selenium_vue:
|
||||
build:
|
||||
context: ./selenium_vue # 上一级目录
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
VITE_API_BASE_URL: http://47.83.141.164:8002
|
||||
VITE_CRAWL_URL: http://47.83.141.164:5001/crawl
|
||||
container_name: selenium-vue-container
|
||||
environment:
|
||||
PORT: 80
|
||||
NGINX_SERVER_NAME: localhost
|
||||
depends_on:
|
||||
- selenium
|
||||
- selenium_django
|
||||
ports:
|
||||
- "8091:80"
|
||||
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 26767ab8cc5227d81a027c9fb156459936699514
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 891bb94c9c0424de4aac9c4112a3c000bed7af87
|
|
@ -0,0 +1 @@
|
|||
Subproject commit 6aa3e5d5b86466eb0344675541d1ad0ecd798e66
|
|
@ -0,0 +1,15 @@
|
|||
selenium 是爬虫服务
|
||||
selenium_django是后端服务
|
||||
selenium_vue是前端服务
|
||||
|
||||
|
||||
在docker-compose.yaml中修改ip
|
||||
docker-compose up -d --build 即可
|
||||
|
||||
|
||||
docker展示如下:
|
||||
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
|
||||
f333cd6599ef wpproject-selenium_vue "/docker-entrypoint.…" 2 hours ago Up 2 hours 0.0.0.0:8091->80/tcp, [::]:8091->80/tcp selenium-vue-container
|
||||
42e59ce25463 wpproject-selenium_django "/entrypoint.sh" 2 hours ago Up 2 hours 0.0.0.0:8002->8000/tcp, [::]:8002->8000/tcp selenium-django-container
|
||||
6e21e384388f redis:7 "docker-entrypoint.s…" 2 hours ago Up 2 hours 0.0.0.0:6380->6379/tcp, [::]:6380->6379/tcp redis
|
||||
b287b4f6204c wpproject-selenium "/entrypoint.sh" 2 hours ago Up 2 hours 0.0.0.0:5001->5000/tcp, [::]:5001->5000/tcp
|
Loading…
Reference in New Issue