Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
docker-test
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kunkka王辉
docker-test
Commits
ab92f9cd
Commit
ab92f9cd
authored
Sep 20, 2023
by
Kunkka王辉
😲
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化
parent
574f7d97
Changes
4
Show whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
27 additions
and
8 deletions
+27
-8
.env.example
.env.example
+3
-1
README.md
README.md
+5
-3
docker-compose.yaml
docker-compose.yaml
+12
-0
nginx-start.sh
src/nginx-start.sh
+7
-4
No files found.
.env.example
View file @
ab92f9cd
...
@@ -6,3 +6,5 @@ PORT_CRM=8181
...
@@ -6,3 +6,5 @@ PORT_CRM=8181
# 代码目录,含前后端
# 代码目录,含前后端
CODE_DIR=/home/wh/workplace/code_test
CODE_DIR=/home/wh/workplace/code_test
JAVA_PROFILE=innerdev
JAVA_PROFILE=innerdev
#nacos 客户端轮询间隔
TICK_TIME=30000
\ No newline at end of file
README.md
View file @
ab92f9cd
...
@@ -41,7 +41,7 @@ return [
...
@@ -41,7 +41,7 @@ return [
|:------------------------|:-----------------------------|:---------------------------------------------------------------------------------|:--------------------------------|:-------|:------|:-------------------------------------|:--------------------|
|:------------------------|:-----------------------------|:---------------------------------------------------------------------------------|:--------------------------------|:-------|:------|:-------------------------------------|:--------------------|
| BaseMicros | 无 | - | - | 疑似弃用 | - | - | |
| BaseMicros | 无 | - | - | 疑似弃用 | - | - | |
| MarketMicros | 无 | - | - | 疑似弃用 | - | - | |
| MarketMicros | 无 | - | - | 疑似弃用 | - | - | |
| FlowMicros | Crm重构-流程管理相关的微服务 | http://gitlab.galaxy-immi.com/colnet/bp/FlowMicros.git | flowmicros | 正常 | php | $GALAXY_FLOW_MICROS_API_HTTP_PORT | |
| FlowMicros | Crm重构-流程管理相关的微服务 | http://gitlab.galaxy-immi.com/colnet/bp/FlowMicros.git | flow
-
micros | 正常 | php | $GALAXY_FLOW_MICROS_API_HTTP_PORT | |
| UserMicros | Crm重构-用户管理相关的微服务 | http://gitlab.galaxy-immi.com/colnet/bp/UserMicros.git | user-micros | 正常 | php | $GALAXY_USER_MICROS_API_HTTP_PORT | |
| UserMicros | Crm重构-用户管理相关的微服务 | http://gitlab.galaxy-immi.com/colnet/bp/UserMicros.git | user-micros | 正常 | php | $GALAXY_USER_MICROS_API_HTTP_PORT | |
| FlowEngineMicros | 工作流引擎 | http://gitlab.galaxy-immi.com/colnet/engine.git | flowengine | 正常 | java | 80 (单独容器服务,内部端口) | |
| FlowEngineMicros | 工作流引擎 | http://gitlab.galaxy-immi.com/colnet/engine.git | flowengine | 正常 | java | 80 (单独容器服务,内部端口) | |
| ServerSiteMicros | 服务端相关的微服务 | http://gitlab.galaxy-immi.com/colnet/mp/ServerSiteMirocs.git | server-site | 正常 | php | $GALAXY_SERVER_SITE_API_HTTP_PORT | |
| ServerSiteMicros | 服务端相关的微服务 | http://gitlab.galaxy-immi.com/colnet/mp/ServerSiteMirocs.git | server-site | 正常 | php | $GALAXY_SERVER_SITE_API_HTTP_PORT | |
...
@@ -71,7 +71,7 @@ return [
...
@@ -71,7 +71,7 @@ return [
| Notice-FRONT | Notice-Center前端-智能预警/代办 | http://gitlab.galaxy-immi.com/Front-end-group/Manage-Frame/Early-Warning.git | smartwhale/subapp/early_warning | 正常 | vue | $VUE_NOTICE_CENTER_HTTP_PORT | |
| Notice-FRONT | Notice-Center前端-智能预警/代办 | http://gitlab.galaxy-immi.com/Front-end-group/Manage-Frame/Early-Warning.git | smartwhale/subapp/early_warning | 正常 | vue | $VUE_NOTICE_CENTER_HTTP_PORT | |
| domain-module | 领域服务 | http://gitlab.galaxy-immi.com/colnet/domain-module.git | domain-module | 待定 | php | - | php8 |
| domain-module | 领域服务 | http://gitlab.galaxy-immi.com/colnet/domain-module.git | domain-module | 待定 | php | - | php8 |
todo : test-doc.galaxy-immi.com 智能写作
### php7.4扩展
### php7.4扩展
...
@@ -162,10 +162,12 @@ docker compose down --rmi all # 销毁并删除镜像
...
@@ -162,10 +162,12 @@ docker compose down --rmi all # 销毁并删除镜像
## 执行脚本
## 执行脚本
docker run --rm
## 执行计划任务
## 执行计划任务
## 常驻进程管理
## 常驻进程管理
## 备注
## 备注
nacos 配置中心管理.env配置 暂时非侵入;后续可以考虑使用 composer require nacos/nacos-sdk-php
docker-compose.yaml
View file @
ab92f9cd
...
@@ -57,6 +57,7 @@ services:
...
@@ -57,6 +57,7 @@ services:
ports
:
ports
:
-
"
${PORT:-8118}:8081"
-
"
${PORT:-8118}:8081"
-
"
${PORT_CRM:-8181}:8181"
-
"
${PORT_CRM:-8181}:8181"
-
"
8290:8290"
# 老crm 转发
restart
:
on-failure
restart
:
on-failure
java-notice
:
java-notice
:
image
:
harbor.galaxy-immi.com/galaxy-open-develop/java:11
image
:
harbor.galaxy-immi.com/galaxy-open-develop/java:11
...
@@ -118,6 +119,17 @@ services:
...
@@ -118,6 +119,17 @@ services:
networks
:
networks
:
-
galaxy-net
-
galaxy-net
restart
:
on-failure
restart
:
on-failure
nacos-client
:
image
:
harbor.galaxy-immi.com/galaxy-open-develop/nacos-client:0.1
container_name
:
nacos-client-${ENV:-dev}
networks
:
-
galaxy-net
environment
:
-
ENV=${ENV:-dev}
-
NACOS_URL=${NACOS_URL:-http://192.168.11.163:8848}
-
TICK_TIME=${TICK_TIME:-30000}
volumes
:
-
${CODE_DIR}:/app/code
networks
:
networks
:
galaxy-net
:
galaxy-net
:
name
:
galaxy-net
name
:
galaxy-net
...
...
src/nginx-start.sh
View file @
ab92f9cd
...
@@ -181,10 +181,12 @@ server {
...
@@ -181,10 +181,12 @@ server {
}
}
location ^~ /subapp/userInfo/ {
location ^~ /subapp/userInfo/ {
root /app/www/dwp/subapp/userInfo;
index index.html;
proxy_pass http://
$HOST
:
$VUE_USERINFO_PORT
/;
proxy_pass http://
$HOST
:
$VUE_USERINFO_PORT
/;
try_files \
$uri
\
$uri
/ /index.html;
proxy_set_header X-Forwarded-For
$proxy_add_x_forwarded_for
;
proxy_set_header Host
$host
;
proxy_set_header X-Real-Ip
$remote_addr
;
proxy_set_header X-Ngnix-Proxy true;
}
}
...
@@ -229,11 +231,12 @@ server {
...
@@ -229,11 +231,12 @@ server {
proxy_set_header X-Ngnix-Proxy true;
proxy_set_header X-Ngnix-Proxy true;
}
}
location ^~ /api/ {
location ^~ /api/ {
proxy_pass http://
$HOST
:
$GALAXY_CRM_API_HTTP_PORT
/;
proxy_set_header X-Forwarded-For \
$proxy_add_x_forwarded_for
;
proxy_set_header X-Forwarded-For \
$proxy_add_x_forwarded_for
;
proxy_set_header Host \
$host
;
proxy_set_header Host \
$host
;
proxy_set_header X-Real-Ip \
$remote_addr
;
proxy_set_header X-Real-Ip \
$remote_addr
;
proxy_set_header X-Ngnix-Proxy true;
proxy_set_header X-Ngnix-Proxy true;
proxy_pass http://
$HOST
:
$GALAXY_CRM_API_HTTP_PORT
/;
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment