ccr.ccs.tencentyun.com/
1docker-compose 部署文件编写
[umed@localhost rub-u]$ pwd
/home/umed/opt/rub-u
[umed@localhost rub-u]$vi docker-compose.yml
[umed@localhost rub-u]$ cat docker-compose.yml
version: '3'
services:
user-adapter:
image: ccr.ccs.aliyun.com/big-devil/user-adapter:3.8.5
container_name: user-adapter
ports:
- "8158:8040"
- "12000:12580"
volumes:
- /etc/hosts:/etc/hosts
- /home/umed/logs/rub-u:/home/umed/logs
networks:
- rub-u
environment:
- JAVA_OPTS= -Dapp.id=user-adapter -Denv=local -Xmx400m -Xmn200m -XX:MaxMetaspaceSize=100m -XX:MaxDirectMemorySize=25m -Xss512k -XX:+PrintGCDetails -Xloggc:/opt/gc.log -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=12580
env_file:
- ./env/common.env
- ./env/user-adapter.env
restart: always
ugateway:
image: ccr.ccs.aliyun.com/big-devil/ugateway:3.8.1
container_name: ugateway
ports:
- "8157:8030"
volumes:
- /etc/hosts:/etc/hosts
- /home/umed/logs/rub-u:/home/umed/logs
networks:
- rub-u
links:
- user-adapter
- payment-business
- rub-project
environment:
- JAVA_OPTS= -Dapp.id=ugateway -Denv=local -Xmx800m -Xmn400m -XX:MaxMetaspaceSize=200m -XX:MaxDirectMemorySize=25m -Xss521k -XX:+PrintGCDetails -Xloggc:/opt/gc.log
env_file:
- ./env/common.env
- ./env/ugateway.env
restart: always
payment-business:
image: ccr.ccs.aliyun.com/big-devil/payment-business:3.8.0
container_name: payment-business
ports:
- "8159:8088"
volumes:
- /etc/hosts:/etc/hosts
- /etc/localtime:/etc/localtime
- /home/umed/logs/rub-u:/home/umed/logs
networks:
- rub-u
environment:
- JAVA_OPTS= -Dapp.id=payment-business -Denv=local -Xms800m -Xmx900m -XX:+PrintGCDateStamps -XX:MaxMetaspaceSize=250m -XX:MaxDirectMemorySize=200m -Xss512k -XX:G1HeapRegionSize=16m -XX:G1ReservePercent=25 -XX:MaxGCPauseMillis=200 -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=30 -XX:-PrintGCDetails -Xloggc:/opt/gc.log
env_file:
- ./env/common.env
- ./env/payment-business.env
restart: always
rub-project:
image: ccr.ccs.aliyun.com/big-devil/rub-project:3.9.1
container_name: rub-project
ports:
- "8153:8080"
- "12581:12580"
volumes:
- /etc/hosts:/etc/hosts
- /home/umed/logs/rub-project:/home/umed/logs
networks:
- rub-u
environment:
- JAVA_OPTS= -Dapp.id=rub-project -Denv=local -Xmx4048m -Xmn2024m -Xms2048m -XX:MaxMetaspaceSize=400m -XX:MaxDirectMemorySize=150m -Xss512k -XX:+PrintGCDetails -Xloggc:/opt/gc.log -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=30 -XX:+PrintGCDateStamps -XX:MaxGCPauseMillis=200 -XX:G1HeapRegionSize=16m -XX:G1ReservePercent=25 -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=12580
env_file:
- ./env/common.env
- ./env/rub-project.env
restart: always
cerberus:
image: ccr.ccs.aliyun.com/big-devil/cerberus:3.5.0
container_name: cerberus
ports:
- "8150:9999"
volumes:
- /etc/hosts:/etc/hosts
- /home/umed/logs/rub-project:/root/logs
networks:
- rub-u
links:
- rub-project
- ptm
- general
environment:
- JAVA_OPTS= -Dapp.id=cerberus-server -Denv=local -Xms300m -Xmx300m -XX:+PrintGCDateStamps -XX:MaxMetaspaceSize=200m -XX:MaxDirectMemorySize=200m -Xss512k -XX:G1HeapRegionSize=16m -XX:G1ReservePercent=25 -XX:MaxGCPauseMillis=200 -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=30 -XX:-PrintGCDetails -Xloggc:/opt/_gc.log
env_file:
- ./env/common.env
- ./env/cerberus.env
restart: always
ptm:
image: ccr.ccs.aliyun.com/big-devil/pt_management:3.8.0
container_name: ptm
ports:
- "8151:10086"
volumes:
- /etc/hosts:/etc/hosts
- /home/umed/logs/rub-project:/root/logs
networks:
- rub-u
links:
- general
environment:
- JAVA_OPTS= -Dapp.id=ptm-server -Denv=local -XX:+PrintGC -Xloggc:/opt/gc.log -Xmx500m -Xmn200m -XX:MaxMetaspaceSize=100m -XX:MaxDirectMemorySize=50m -Xss512k
env_file:
- ./env/common.env
- ./env/general.env
restart: always
depends_on:
- general
general:
image: ccr.ccs.aliyun.com/big-devil/general:3.8.0
container_name: general
ports:
- "8160:8080"
volumes:
- /etc/hosts:/etc/hosts
- /home/umed/logs/rub-project:/root/logs
networks:
- rub-u
environment:
- JAVA_OPTS= -Dapp.id=general -Denv=local -Xmx600m -Xmn200m -XX:MaxMetaspaceSize=400m -XX:MaxDirectMemorySize=150m -Xss512k -Xloggc:gc.log -XX:+PrintGC -XX:+TraceClassLoading -XX:+HeapDumpOnOutOfMemoryError
env_file:
- ./env/common.env
- ./env/general.env
restart: always
micro-network:
image: ccr.ccs.aliyun.com/big-devil/micro-network:3.8.0
container_name: micro-network
ports:
- "8156:80"
volumes:
- /etc/hosts:/etc/hosts
- /home/umed/logs/rub-project:/root/logs
networks:
- rub-u
environment:
- BASE_URL=https:\/\/xxxopen.aliyunxx.com\/rbu\/api
- RES_URL=https:\/\/xxxopen.aliyunxx.com\/rbu\/micro-network
- OPEN_URL=https:\/\/xxxopen.aliyunxx.com\/rbu\/open
- RU_URL=https:\/\/xxxopen.aliyunxx.com\/rbu\/gateway
restart: always
back-stage:
image: ccr.ccs.aliyun.com/big-devil/back-stage:3.8.0
container_name: back-stage
ports:
- "8154:80"
volumes:
- /etc/hosts:/etc/hosts
- /home/umed/logs/rub-project:/root/logs
networks:
- rub-u
environment:
- BASE_URL=https:\/\/xxxopen.aliyunxx.com\/rbu\/api
- OPEN_URL=https:\/\/xxxopen.aliyunxx.com\/rbu\/open
- ASSETS_PUBILC_PATH=rbu\/hidoc\/
- API_URL=https:\/\/xxxopen.aliyunxx.com\/rbu\/gateway
restart: always
back-stage-service:
image: ccr.ccs.aliyun.com/big-devil/back-stage-service:3.8.8
container_name: back-stage-service
ports:
- "8162:8080"
volumes:
- /etc/hosts:/etc/hosts
- /etc/localtime:/etc/localtime
networks:
- rub-u
environment:
- JAVA_OPTS= -Dapp.id=back-stage-service -Denv=local -Xms800m -Xmx900m -XX:+PrintGCDateStamps -XX:MaxMetaspaceSize=250m -XX:MaxDirectMemorySize=200m -Xss512k -XX:G1HeapRegionSize=16m -XX:G1ReservePercent=25 -XX:MaxGCPauseMillis=200 -XX:+UseG1GC -XX:InitiatingHeapOccupancyPercent=30 -XX:-PrintGCDetails -Xloggc:/opt/gc.log
env_file:
- ./env/common.env
- ./env/back-stage-service.env
restart: always
back-stage-web:
image: ccr.ccs.aliyun.com/big-devil/back-stage-web:3.8.3
container_name: back-stage-web
ports:
- "8163:80"
volumes:
- /etc/hosts:/etc/hosts
- /home/umed/logs/rub-project:/root/logs
networks:
- rub-u
environment:
- BASE_URL=https:\/\/xxxopen.aliyunxx.com\/rbu\/gateway
restart: always
rub-app-h5:
image: ccr.ccs.aliyun.com/big-devil/rub-app-h5:3.8.14
container_name: rub-app-h5
ports:
- "8155:80"
volumes:
- /etc/hosts:/etc/hosts
- /home/umed/logs/rub-project:/root/logs
networks:
- rub-u
environment:
- BASE_URL=https:\/\/xxxopen.aliyunxx.com\/rbu\/gateway
- OPEN_URL=https:\/\/xxxopen.aliyunxx.com\/rbu\/open
- UNIPATIENT_URL=https:\/\/xxxopen.aliyunxx.com
restart: always
ru-bianque-guahao:
image: ccr.ccs.aliyun.com/big-devil/guahao:1.0.32
container_name: ru-bianque-guahao
ports:
- "8164:8080"
- "12592:12580"
volumes:
- /etc/hosts:/etc/hosts
- /etc/localtime:/etc/localtime
networks:
- rub-u
environment:
- JAVA_OPTS= -Dspring.profiles.active=uni -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=12580 -Djdk.tls.ephemeralDHKeySize=2048 -Dapp.id=back-stage-service -Xms800M -Xmx800M -Xmn400M -Xss512k -XX:+UseParNewGC -XX:+PrintGCDateStamps -XX:MaxGCPauseMillis=1000 -Xloggc:/opt/gc.log -XX:+PrintGC -XX:MetaspaceSize=200M -XX:MaxMetaspaceSize=200M -XX:+UseConcMarkSweepGC -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=3 -XX:CMSInitiatingOccupancyFraction=85 -XX:+UseCMSInitiatingOccupancyOnly
env_file:
- ./env/common.env
- ./env/back-stage-service.env
ru-guahaoh5:
image: ccr.ccs.aliyun.com/big-devil/guahao-h5:1.0.3
container_name: ru-guahaoh5
ports:
- "8166:80"
volumes:
- /etc/hosts:/etc/hosts
- /home/umed/logs/rub-project:/root/logs
networks:
- rub-u
environment:
- BASE_URL=https:\/\/xxxopen.aliyunxx.com\/rbu\/gateway
- UNIPATIENT_URL=https:\/\/xxxopen.aliyunxx.com
restart: always
networks:
rub-u:
external:
name: rub-u
[umed@localhost rub-u]$ docker-compose pull ru-guahaoh5
Pulling ru-guahaoh5 ... done
[umed@localhost rub-u]$ docker-compose up -d ru-guahaoh5
2springBoot 配置文件的编写
application-uni.properties
2.1 启动用变量 -Dspring.profiles.active=uni
- JAVA_OPTS= -Dspring.profiles.active=uni -Xmx400m -Xmn200m -XX:MaxMetaspaceSize=100m -XX:MaxDirectMemorySize=25m -Xss512k -XX:+PrintGCDetails -Xloggc:/opt/gc.log
env_file:
- ./env/uni-patient.env
2.2 application-uni.properties
spring.redis.host=${REDIES_HOST:127.0.0.1}
# 缓存不可以与 rubik-project同库--key有冲突。同类名的包路径不一样, 获取到rubik-project 的缓存会出错
spring.redis.database=${REDIES_DATABASE:0}
#Redis服务器连接端口
spring.redis.port=${REDIES_PORT:6379}
#Redis服务器连接密码(默认为空)
spring.redis.password=${REDIES_PASSWORD:}
编写 env变量文件
./env/common.env
# redis 配置
REDIES_HOST=redis.config.zhuojian
REDIES_PORT=6379
REDIES_PASSWORD=Ol!!vs!dDrsnAVZ!
REDIES_DATABASE=0

291

被折叠的 条评论
为什么被折叠?



