fix: podman can't deploy
This commit is contained in:
@@ -2,13 +2,17 @@
|
||||
# 实验室预约与资源管理平台 - 一键部署编排
|
||||
#
|
||||
# 启动:docker compose up -d --build
|
||||
# 访问:前端 http://localhost:${WEB_PORT:-80}
|
||||
# 访问:前端 http://localhost:${WEB_PORT:-8088}
|
||||
# 后端 http://localhost:${BACKEND_PORT:-8080}
|
||||
# 停止:docker compose down (保留数据库数据卷)
|
||||
# docker compose down -v (同时删除数据库数据,首次初始化会重建演示数据)
|
||||
#
|
||||
# 可通过环境变量覆盖:DB_NAME / DB_USER / DB_PASSWORD / DB_ROOT_PASSWORD /
|
||||
# LAB_JWT_SECRET / WEB_PORT / BACKEND_PORT
|
||||
# LAB_JWT_SECRET / JAVA_OPTS / WEB_PORT / BACKEND_PORT
|
||||
#
|
||||
# Podman 部署请使用 scripts/podman-deploy.sh(会先构建镜像再启动),或手动执行:
|
||||
# podman build -t lab-backend:latest . && podman build -t lab-frontend:latest ./frontend
|
||||
# podman compose up -d
|
||||
# =====================================================================
|
||||
|
||||
name: lab-reservation
|
||||
@@ -84,7 +88,7 @@ services:
|
||||
backend:
|
||||
condition: service_healthy
|
||||
ports:
|
||||
- "${WEB_PORT:-80}:80"
|
||||
- "${WEB_PORT:-8088}:80"
|
||||
networks:
|
||||
- lab-net
|
||||
|
||||
|
||||
Reference in New Issue
Block a user