ci: 构建单镜像版本

1. 优化路由改为createWebHashHistory
2. 优化Dockerfile
This commit is contained in:
CaasianVale
2025-03-08 03:59:25 +08:00
parent 2dd8b7ded8
commit ce331a4d0d
9 changed files with 54 additions and 250 deletions

View File

@@ -1,11 +1,11 @@
version: '3.8'
services:
backend:
app:
build:
context: .
dockerfile: Dockerfile
container_name: stock-scanner-backend
container_name: stock-scanner-app
ports:
- "8888:8888"
environment:
@@ -27,25 +27,6 @@ services:
networks:
- stock-scanner-network
frontend:
build:
context: ./frontend
dockerfile: Dockerfile
container_name: stock-scanner-frontend
ports:
- "80:80"
depends_on:
- backend
restart: unless-stopped
healthcheck:
test: ["CMD", "wget", "--quiet", "--tries=1", "--spider", "http://localhost:80"]
interval: 30s
timeout: 10s
retries: 3
start_period: 5s
networks:
- stock-scanner-network
networks:
stock-scanner-network:
driver: bridge