2024-01-30 10:52:06 +08:00
|
|
|
services:
|
|
|
|
nacos:
|
2024-04-07 10:40:12 +08:00
|
|
|
image: nacos/nacos-server:v2.3.2
|
2024-01-30 10:52:06 +08:00
|
|
|
container_name: ${CONTAINER_NAME}-standalone
|
|
|
|
restart: always
|
|
|
|
environment:
|
2024-01-30 15:50:10 +08:00
|
|
|
- NACOS_AUTH_ENABLE=${NACOS_AUTH_ENABLE:-FALSE}
|
2024-01-30 10:52:06 +08:00
|
|
|
- PREFER_HOST_MODE=hostname
|
|
|
|
- MODE=standalone
|
|
|
|
- JVM_XMS=${JVM_XMS}
|
|
|
|
- JVM_XMX=${JVM_XMX}
|
|
|
|
- JVM_XMN=${JVM_XMN}
|
|
|
|
- JVM_MS=${JVM_MS}
|
|
|
|
- JVM_MMS=${JVM_MMS}
|
|
|
|
- NACOS_AUTH_IDENTITY_KEY=${NACOS_AUTH_IDENTITY_KEY}
|
|
|
|
- NACOS_AUTH_IDENTITY_VALUE=${NACOS_AUTH_IDENTITY_VALUE}
|
|
|
|
- NACOS_AUTH_TOKEN=${NACOS_AUTH_TOKEN}
|
|
|
|
- NACOS_SERVER_IP=${NACOS_SERVER_IP}
|
|
|
|
volumes:
|
2024-01-30 15:50:10 +08:00
|
|
|
- ./data/logs:/home/nacos/logs
|
|
|
|
- ./data/data:/home/nacos/data
|
2024-01-30 10:52:06 +08:00
|
|
|
ports:
|
|
|
|
- "${PANEL_APP_PORT_HTTP}:8848"
|
2024-01-30 15:50:10 +08:00
|
|
|
- "${PANEL_APP_PORT_COMMUNICATION}:9848"
|
2024-01-30 10:52:06 +08:00
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|