2024-04-22 15:22:50 +08:00
|
|
|
services:
|
|
|
|
nacos:
|
|
|
|
image: nacos/nacos-server:v2.3.2-slim
|
2024-04-24 11:38:03 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
2024-04-22 15:22:50 +08:00
|
|
|
restart: always
|
|
|
|
environment:
|
|
|
|
- NACOS_AUTH_ENABLE=${NACOS_AUTH_ENABLE:-FALSE}
|
|
|
|
- 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}
|
2024-04-22 16:24:29 +08:00
|
|
|
- SPRING_DATASOURCE_PLATFORM=${SPRING_DATASOURCE_PLATFORM}
|
|
|
|
- MYSQL_SERVICE_HOST=${MYSQL_SERVICE_HOST}
|
|
|
|
- MYSQL_SERVICE_PORT=${MYSQL_SERVICE_PORT}
|
|
|
|
- MYSQL_SERVICE_DB_NAME=${MYSQL_SERVICE_DB_NAME}
|
|
|
|
- MYSQL_SERVICE_USER=${MYSQL_SERVICE_USER}
|
|
|
|
- MYSQL_SERVICE_PASSWORD=${MYSQL_SERVICE_PASSWORD}
|
2024-04-22 15:22:50 +08:00
|
|
|
volumes:
|
|
|
|
- ./data/logs:/home/nacos/logs
|
|
|
|
- ./data/data:/home/nacos/data
|
|
|
|
ports:
|
|
|
|
- "${PANEL_APP_PORT_HTTP}:8848"
|
|
|
|
- "${PANEL_APP_PORT_COMMUNICATION}:9848"
|
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|