🐳 修改 docker 配置.

This commit is contained in:
lijiahangmax
2024-02-28 00:16:46 +08:00
parent 294911b4fa
commit fe029ae05d
4 changed files with 190 additions and 4 deletions

View File

@@ -1,4 +1,8 @@
#!/bin/bash
# 等待 mysql 服务
/app/wait-for-it.sh orion-ops-pro-db:3306 --timeout=60 --strict=tcp
# 等待 redis 服务
/app/wait-for-it.sh orion-ops-pro-redis:6379 --timeout=60 --strict=tcp
cd /app
nohup java -jar app.jar --spring.profiles.active=prod 2>&1 &
nginx -g 'daemon off;'