fix(deploy): Correct 1Panel service configuration
- Require a valid Base64 Nacos auth token in examples and docs - Mount Nacos application config for 1Panel deployments - Adjust service health checks and startup dependencies
This commit is contained in:
@@ -110,14 +110,11 @@ services:
|
||||
PREFER_HOST_MODE: hostname
|
||||
ports:
|
||||
- "${LOCAL_BIND_ADDR:-127.0.0.1}:${NACOS_HTTP_PORT:-8848}:8848"
|
||||
volumes:
|
||||
- ./config/nacos/application-1panel.properties:/home/nacos/conf/application.properties:ro
|
||||
depends_on:
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:8848/nacos/v1/console/health/liveness"]
|
||||
interval: 10s
|
||||
timeout: 5s
|
||||
retries: 15
|
||||
networks:
|
||||
- haovp-network
|
||||
|
||||
@@ -231,7 +228,7 @@ services:
|
||||
- "${LOCAL_BIND_ADDR:-127.0.0.1}:${GATEWAY_HTTP_PORT:-9000}:9000"
|
||||
depends_on:
|
||||
nacos:
|
||||
condition: service_healthy
|
||||
condition: service_started
|
||||
redis-sentinel:
|
||||
condition: service_started
|
||||
networks:
|
||||
@@ -253,7 +250,7 @@ services:
|
||||
JAVA_OPTS: ${AUTH_JAVA_OPTS:--Xms128m -Xmx256m}
|
||||
depends_on:
|
||||
nacos:
|
||||
condition: service_healthy
|
||||
condition: service_started
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
redis-sentinel:
|
||||
@@ -282,7 +279,7 @@ services:
|
||||
JAVA_OPTS: ${USER_JAVA_OPTS:--Xms128m -Xmx256m}
|
||||
depends_on:
|
||||
nacos:
|
||||
condition: service_healthy
|
||||
condition: service_started
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
redis-sentinel:
|
||||
@@ -317,7 +314,7 @@ services:
|
||||
JAVA_OPTS: ${CONTENT_JAVA_OPTS:--Xms256m -Xmx512m}
|
||||
depends_on:
|
||||
nacos:
|
||||
condition: service_healthy
|
||||
condition: service_started
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
redis-sentinel:
|
||||
@@ -345,7 +342,7 @@ services:
|
||||
JAVA_OPTS: ${COMMENT_JAVA_OPTS:--Xms128m -Xmx256m}
|
||||
depends_on:
|
||||
nacos:
|
||||
condition: service_healthy
|
||||
condition: service_started
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
redis-sentinel:
|
||||
@@ -369,7 +366,7 @@ services:
|
||||
JAVA_OPTS: ${RECOMMEND_JAVA_OPTS:--Xms128m -Xmx256m}
|
||||
depends_on:
|
||||
nacos:
|
||||
condition: service_healthy
|
||||
condition: service_started
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
redis-sentinel:
|
||||
@@ -395,7 +392,7 @@ services:
|
||||
JAVA_OPTS: ${ADMIN_JAVA_OPTS:--Xms128m -Xmx256m}
|
||||
depends_on:
|
||||
nacos:
|
||||
condition: service_healthy
|
||||
condition: service_started
|
||||
mysql:
|
||||
condition: service_healthy
|
||||
redis-sentinel:
|
||||
|
||||
Reference in New Issue
Block a user