ci: 用容器跑编译并部署到 9000 端口
This commit is contained in:
@@ -1,3 +1,7 @@
|
||||
# 固定项目名:compose 的项目名默认取自工作目录,
|
||||
# 从 CI 临时目录部署会变成另一套 *_mysql_data 卷,看起来像“数据丢了”。
|
||||
name: vloop
|
||||
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:8.0
|
||||
@@ -120,7 +124,9 @@ services:
|
||||
image: vloop-frontend:latest
|
||||
restart: always
|
||||
ports:
|
||||
- "127.0.0.1:9001:80"
|
||||
# 对外访问:http://goanchor.top:9000(可用 APP_PORT 覆盖)。
|
||||
# 若之后在 443 加反向代理,改成 "127.0.0.1:${APP_PORT:-9000}:80" 只监听回环。
|
||||
- "${APP_PORT:-9000}:80"
|
||||
depends_on:
|
||||
- backend
|
||||
healthcheck:
|
||||
|
||||
Reference in New Issue
Block a user