jenkins SSH登录服务器,按分支部署
This commit is contained in:
1 parent
d710a88d04
commit
3f5b6292ba
7 files changed
+119
-38
No files matched your search
+4
-5
@@ -9,11 +9,10 @@ services:
|
||||
container_name: hxops-backend
|
||||
restart: always
|
||||
environment:
|
||||
# 数据库连接 (指向宿主机或其他容器,请根据实际环境修改)
|
||||
- DATABASE_URL=postgresql://postgres:difyai123456@192.168.100.230:5432/hxops_db
|
||||
# Flask 配置
|
||||
- FLASK_APP=run.py
|
||||
- FLASK_ENV=production
|
||||
# 数据库连接 (在环境变量中配置)
|
||||
- DATABASE_URL=${DATABASE_URL}
|
||||
- FLASK_APP=${FLASK_APP:-run.py}
|
||||
- FLASK_ENV=${FLASK_ENV:-production}
|
||||
# 允许容器访问宿主机服务 (如数据库)
|
||||
extra_hosts:
|
||||
- "host.docker.internal:host-gateway"
|
||||
|
||||
Reference in new issue
Block a user