42 lines
1.1 KiB
Bash
42 lines
1.1 KiB
Bash
#!/bin/bash
|
|
# 定基本环境变量并导出
|
|
export DOMAIN=bazhong
|
|
export NETWORK="swarm_network_$DOMAIN"
|
|
|
|
export REGISTRY=registry.t-aaron.com
|
|
|
|
#MySql 端口暴露出来方便访问
|
|
export MYSQL_PORT=3308
|
|
export MYSQL_ROOT_PASSWORD=tuoheng2024
|
|
export MYSQL_IMAGE=${REGISTRY}/tuoheng/mysql:8.0.25
|
|
export MYSQL_DATA=${NETWORK}_mysql_data
|
|
export MYSQL_NAME=MYSQL_${DOMAIN}
|
|
export MYSQL_MEMORY=1g
|
|
|
|
export REDIS_PORT=6380
|
|
export REDIS_IMAGE=${REGISTRY}/tuoheng/redis:latest
|
|
export REDIS_DATA=${NETWORK}_redis_data
|
|
export REDIS_NAME=REDIS_${DOMAIN}
|
|
export REDIS_MEMORY=512m
|
|
|
|
|
|
export MQTT_PORT=1883
|
|
export MQTT_WS_PORT=9001
|
|
export MQTT_IMAGE=${REGISTRY}/tuoheng/eclipse-mosquitto:latest
|
|
export MQTT_NAME=MQTT_${DOMAIN}
|
|
export MQTT_MEMORY=512m
|
|
|
|
export SKY_AOP="sky-oap:11800"
|
|
#主机INGRESS_PORT 映射到容器80 INGRESS_SSL_PORT 映射到容器 443
|
|
export INGRESS_PORT=80
|
|
#export INGRESS_SSL_PORT=443
|
|
|
|
export OIDC_URL=https://oidc-$DOMAIN-software.t-aaron.com
|
|
export OIDC_PORT=8090
|
|
export XXL_JOB=http://xxljob:8080/xxl-job-admin
|
|
#固定基本配置
|
|
export TZ=Asia/Shanghai
|
|
export SPRING_CLOUD_CONSUL_HOST=consul
|
|
export SPRING_CLOUD_CONSUL_PORT=8500
|
|
|