fix(env): docker
This commit is contained in:
@@ -5,10 +5,10 @@ NEXT_PUBLIC_ENV=development
|
|||||||
|
|
||||||
|
|
||||||
# redis
|
# redis
|
||||||
# NEXT_PUBLIC_REDIS_URL="172.16.112.128"
|
# NEXT_PUBLIC_REDIS_URL="172.16.115.128"
|
||||||
NEXT_PUBLIC_REDIS_URL="localhost"
|
NEXT_PUBLIC_REDIS_URL="172.30.21.213"
|
||||||
NEXT_PUBLIC_REDIS_PORT=9765
|
NEXT_PUBLIC_REDIS_PORT=9765
|
||||||
NEXT_PUBLIC_REDIS_PASSWORD=password
|
NEXT_PUBLIC_REDIS_PASSWORD=password
|
||||||
NEXT_PUBLIC_REDIS_USERNAME=default
|
NEXT_PUBLIC_REDIS_USERNAME=default
|
||||||
NEXT_PUBLIC_REDIS_DB=0
|
NEXT_PUBLIC_REDIS_DB=1
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ NEXT_PUBLIC_BASE_PATH=""
|
|||||||
NEXT_PUBLIC_ENV=staging
|
NEXT_PUBLIC_ENV=staging
|
||||||
|
|
||||||
# redis
|
# redis
|
||||||
NEXT_PUBLIC_REDIS_URL="172.30.21.213"
|
NEXT_PUBLIC_REDIS_URL="172.16.115.128"
|
||||||
NEXT_PUBLIC_REDIS_PORT=9765
|
NEXT_PUBLIC_REDIS_PORT=9765
|
||||||
NEXT_PUBLIC_REDIS_PASSWORD=password
|
NEXT_PUBLIC_REDIS_PASSWORD=password
|
||||||
NEXT_PUBLIC_REDIS_USERNAME=default
|
NEXT_PUBLIC_REDIS_USERNAME=default
|
||||||
|
|||||||
4
build.sh
4
build.sh
@@ -87,7 +87,7 @@ docker build -f $DOCKER_FILE -t $MAIN_NAME $SHELL_FOLDER
|
|||||||
if [[ $? != 0 ]]; then echo -e "${RED}build docker with error${NC}"; exit 100; fi
|
if [[ $? != 0 ]]; then echo -e "${RED}build docker with error${NC}"; exit 100; fi
|
||||||
|
|
||||||
echo -e "${GREEN}Tagging and pushing docker image...${NC}"
|
echo -e "${GREEN}Tagging and pushing docker image...${NC}"
|
||||||
docker tag $MAIN_NAME harbor.cowarobot.cn/gopro/$MAIN_NAME:$FLAG_PROD
|
docker tag $MAIN_NAME harbor.cowarobot.cn/softrepo/$MAIN_NAME:$FLAG_PROD
|
||||||
docker push harbor.cowarobot.cn/gopro/$MAIN_NAME:$FLAG_PROD
|
docker push harbor.cowarobot.cn/softrepo/$MAIN_NAME:$FLAG_PROD
|
||||||
|
|
||||||
echo -e "${GREEN}Build completed successfully${NC}"
|
echo -e "${GREEN}Build completed successfully${NC}"
|
||||||
|
|||||||
@@ -2,5 +2,5 @@ export const BASE_LABEL_API =
|
|||||||
process.env.NEXT_PUBLIC_ENV === "production"
|
process.env.NEXT_PUBLIC_ENV === "production"
|
||||||
? "https://label.cowarobot.com"
|
? "https://label.cowarobot.com"
|
||||||
: process.env.NEXT_PUBLIC_ENV === "staging"
|
: process.env.NEXT_PUBLIC_ENV === "staging"
|
||||||
? "https://label.softtest.cowarobot.com"
|
? "http://172.16.115.128:9110"
|
||||||
: "https://label.softtest.cowarobot.com"
|
: "https://label.softtest.cowarobot.com"
|
||||||
|
|||||||
@@ -32,19 +32,19 @@ export const subConfigList: { source: string; url: string }[] =
|
|||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
source: "/image",
|
source: "/image",
|
||||||
url: "http://172.30.21.213:5532",
|
url: "http://172.16.115.128:5532",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: "/video",
|
source: "/video",
|
||||||
url: "http://172.30.21.213:5533",
|
url: "http://172.16.115.128:5533",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: "/lidar",
|
source: "/lidar",
|
||||||
url: "http://172.30.21.213:5534",
|
url: "http://172.16.115.128:5534",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
source: "/mgt",
|
source: "/mgt",
|
||||||
url: "http://172.30.21.213:5535",
|
url: "http://172.16.115.128:5535",
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []
|
: []
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ const BASE_PATH =
|
|||||||
process.env.NEXT_PUBLIC_ENV === "production"
|
process.env.NEXT_PUBLIC_ENV === "production"
|
||||||
? "https://label.cowarobot.com"
|
? "https://label.cowarobot.com"
|
||||||
: process.env.NEXT_PUBLIC_ENV === "staging"
|
: process.env.NEXT_PUBLIC_ENV === "staging"
|
||||||
? "https://label.softtest.cowarobot.com"
|
? "http://172.16.115.128:9110"
|
||||||
: "https://label.softtest.cowarobot.com"
|
: "https://label.softtest.cowarobot.com"
|
||||||
|
|
||||||
// 获取验证码
|
// 获取验证码
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
version: "3"
|
version: "3"
|
||||||
|
|
||||||
services:
|
services:
|
||||||
digitalspace_labelmain_ssr:
|
web_digitalspace_labelmain_ssr:
|
||||||
container_name: digitalspace_labelmain_ssr
|
container_name: web_digitalspace_labelmain_ssr
|
||||||
image: harbor.cowarobot.cn/gopro/digitalspace_labelmain_ssr:stage_latest
|
image: harbor.cowarobot.cn/softrepo/web_digitalspace_labelmain_ssr:stage_latest
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
ports:
|
ports:
|
||||||
- 5531:5531
|
- 5531:5531
|
||||||
|
|||||||
Reference in New Issue
Block a user