Compare commits

..

No commits in common. "123406bafb3586da553c2d3bd70da2d533c84cb8" and "7a676b425cb4391ed1cc1bef297838240f0bff25" have entirely different histories.

2 changed files with 4 additions and 3 deletions

View File

@ -11,7 +11,7 @@ RUN apt-get update && apt-get install -y \
&& rm -rf /var/lib/apt/lists/*
# 复制依赖文件
COPY ../requirements.txt .
COPY requirements.txt .
# 安装Python依赖
RUN pip install --no-cache-dir -r requirements.txt

View File

@ -3,12 +3,13 @@ version: '3.8'
services:
stock-monitor:
build:
context: ..
dockerfile: docker/Dockerfile
container_name: stock-monitor
ports:
- "8000:8000"
volumes:
- /vol1/1000/Docker/stock_monitor/stock-monitor:/app
- /vol1/1000/Docker/stock_montior/stock-montior:/app
environment:
- PYTHONUNBUFFERED=1
restart: unless-stopped