feat: enhance docker run env
This commit is contained in:
@@ -6,7 +6,7 @@ services:
|
||||
context: ./nacos
|
||||
environment:
|
||||
- MODE=standalone
|
||||
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
volumes:
|
||||
- ./nacos/logs/:/home/nacos/logs
|
||||
@@ -49,9 +49,9 @@ services:
|
||||
ports:
|
||||
- "6379:6379"
|
||||
volumes:
|
||||
- ./redis/conf/redis.conf:/home/wfc/redis/redis.conf
|
||||
- ./redis/conf/redis.conf:/opt/wfc/redis/redis.conf
|
||||
- ./redis/data:/data
|
||||
command: redis-server /home/wfc/redis/redis.conf
|
||||
command: redis-server /opt/wfc/redis/redis.conf
|
||||
|
||||
wfc-gateway:
|
||||
container_name: wfc-gateway
|
||||
@@ -61,13 +61,13 @@ services:
|
||||
ports:
|
||||
- "8080:8080"
|
||||
volumes:
|
||||
- ./wfc/gateway/jar/wfc-gateway.jar:/home/wfc/wfc-gateway.jar
|
||||
- ./wfc/gateway/jar/wfc-gateway.jar:/opt/wfc/wfc-gateway.jar
|
||||
depends_on:
|
||||
- wfc-redis
|
||||
links:
|
||||
- wfc-redis
|
||||
environment:
|
||||
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-auth:
|
||||
container_name: wfc-auth
|
||||
@@ -77,13 +77,13 @@ services:
|
||||
ports:
|
||||
- "9200:9200"
|
||||
volumes:
|
||||
- ./wfc/auth/jar/wfc-auth.jar:/home/wfc/wfc-auth.jar
|
||||
- ./wfc/auth/jar/wfc-auth.jar:/opt/wfc/wfc-auth.jar
|
||||
depends_on:
|
||||
- wfc-redis
|
||||
links:
|
||||
- wfc-redis
|
||||
environment:
|
||||
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-modules-system:
|
||||
container_name: wfc-modules-system
|
||||
@@ -93,7 +93,7 @@ services:
|
||||
ports:
|
||||
- "9201:9201"
|
||||
volumes:
|
||||
- ./wfc/modules/system/jar/wfc-modules-system.jar:/home/wfc/wfc-modules-system.jar
|
||||
- ./wfc/modules/system/jar/wfc-modules-system.jar:/opt/wfc/wfc-modules-system.jar
|
||||
depends_on:
|
||||
- wfc-redis
|
||||
- wfc-mysql
|
||||
@@ -101,7 +101,7 @@ services:
|
||||
- wfc-redis
|
||||
- wfc-mysql
|
||||
environment:
|
||||
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-modules-user:
|
||||
container_name: wfc-modules-user
|
||||
@@ -111,7 +111,7 @@ services:
|
||||
ports:
|
||||
- "9204:9204"
|
||||
volumes:
|
||||
- ./wfc/modules/user/jar/wfc-modules-user.jar:/home/wfc/wfc-modules-user.jar
|
||||
- ./wfc/modules/user/jar/wfc-modules-user.jar:/opt/wfc/wfc-modules-user.jar
|
||||
depends_on:
|
||||
- wfc-redis
|
||||
- wfc-mysql
|
||||
@@ -119,7 +119,7 @@ services:
|
||||
- wfc-redis
|
||||
- wfc-mysql
|
||||
environment:
|
||||
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-modules-gen:
|
||||
container_name: wfc-modules-gen
|
||||
@@ -129,13 +129,13 @@ services:
|
||||
ports:
|
||||
- "9202:9202"
|
||||
volumes:
|
||||
- ./wfc/modules/gen/jar/wfc-modules-gen.jar:/home/wfc/wfc-modules-gen.jar
|
||||
- ./wfc/modules/gen/jar/wfc-modules-gen.jar:/opt/wfc/wfc-modules-gen.jar
|
||||
depends_on:
|
||||
- wfc-mysql
|
||||
links:
|
||||
- wfc-mysql
|
||||
environment:
|
||||
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-modules-job:
|
||||
container_name: wfc-modules-job
|
||||
@@ -145,13 +145,13 @@ services:
|
||||
ports:
|
||||
- "9203:9203"
|
||||
volumes:
|
||||
- ./wfc/modules/job/jar/wfc-modules-job.jar:/home/wfc/wfc-modules-job.jar
|
||||
- ./wfc/modules/job/jar/wfc-modules-job.jar:/opt/wfc/wfc-modules-job.jar
|
||||
depends_on:
|
||||
- wfc-mysql
|
||||
links:
|
||||
- wfc-mysql
|
||||
environment:
|
||||
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-modules-file:
|
||||
container_name: wfc-modules-file
|
||||
@@ -161,10 +161,10 @@ services:
|
||||
ports:
|
||||
- "9300:9300"
|
||||
volumes:
|
||||
- ./wfc/modules/file/jar/wfc-modules-file.jar:/home/wfc/wfc-modules-file.jar
|
||||
- ./wfc/upload:/home/wfc/upload
|
||||
- ./wfc/modules/file/jar/wfc-modules-file.jar:/opt/wfc/wfc-modules-file.jar
|
||||
- ./wfc/upload:/opt/wfc/upload
|
||||
environment:
|
||||
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-modules-payment:
|
||||
container_name: wfc-modules-payment
|
||||
@@ -174,13 +174,13 @@ services:
|
||||
ports:
|
||||
- "9306:9306"
|
||||
volumes:
|
||||
- ./wfc/modules/payment/jar/wfc-modules-payment.jar:/home/wfc/wfc-modules-payment.jar
|
||||
- ./wfc/modules/payment/jar/wfc-modules-payment.jar:/opt/wfc/wfc-modules-payment.jar
|
||||
depends_on:
|
||||
- wfc-mysql
|
||||
links:
|
||||
- wfc-mysql
|
||||
environment:
|
||||
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-visual-monitor:
|
||||
container_name: wfc-visual-monitor
|
||||
@@ -190,9 +190,9 @@ services:
|
||||
ports:
|
||||
- "9100:9100"
|
||||
volumes:
|
||||
- ./wfc/visual/monitor/jar/wfc-visual-monitor.jar:/home/wfc/wfc-visual-monitor.jar
|
||||
- ./wfc/visual/monitor/jar/wfc-visual-monitor.jar:/opt/wfc/wfc-visual-monitor.jar
|
||||
environment:
|
||||
- NACOS_SERVER_ADDR=${NACOS_SERVER_ADDR}
|
||||
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
||||
- NACOS_NAME_SPACE=${NACOS_NAME_SPACE}
|
||||
wfc-nginx:
|
||||
container_name: wfc-nginx
|
||||
@@ -202,7 +202,7 @@ services:
|
||||
ports:
|
||||
- "80:80"
|
||||
volumes:
|
||||
- ./nginx/html/dist:/home/wfc/portal
|
||||
- ./nginx/html/dist:/opt/wfc/portal
|
||||
- ./nginx/conf/nginx.conf:/etc/nginx/nginx.conf
|
||||
- ./nginx/logs:/var/log/nginx
|
||||
- ./nginx/conf.d:/etc/nginx/conf.d
|
||||
|
||||
Reference in New Issue
Block a user