feat: 添加 Dockerfile、docker-compose 和 nginx 配置以支持前后端构建和部署
This commit is contained in:
1 parent
0d78e4c25d
commit
7309520063
5 files changed
+88
-64
No files matched your search
@@ -0,0 +1,25 @@
|
||||
services:
|
||||
backend:
|
||||
build:
|
||||
context: ./backend
|
||||
image: workstation-server:${BUILD_NUMBER:-latest}
|
||||
container_name: workstation-server
|
||||
restart: unless-stopped
|
||||
expose:
|
||||
- "9018"
|
||||
|
||||
frontend:
|
||||
build:
|
||||
context: ./dashboard
|
||||
args:
|
||||
BUILD_NUMBER: ${BUILD_NUMBER:-latest}
|
||||
COMMIT: ${COMMIT_SHORT:-unknown}
|
||||
BRANCH: ${GIT_BRANCH:-unknown}
|
||||
BUILD_TIME: ${BUILD_TIME:-unknown}
|
||||
image: workstation-dashboard:${BUILD_NUMBER:-latest}
|
||||
container_name: workstation-dashboard
|
||||
restart: unless-stopped
|
||||
depends_on:
|
||||
- backend
|
||||
ports:
|
||||
- "9019:80"
|
||||
Reference in new issue
Block a user