appstore-1panel/apps/nacos/2.2.0-mysql/docker-compose.yml
Meng Sen 87dac5de93
Add Nacos-2.2.0 (#863)
* Add Nacos-2.2.0

* Add Sentinel-Dashboard
2024-01-30 10:52:06 +08:00

33 lines
1.1 KiB
YAML

version: "2"
services:
nacos:
image: nacos/nacos-server:v2.2.0
container_name: ${CONTAINER_NAME}-mysql
restart: always
environment:
- 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}
- SPRING_DATASOURCE_PLATFORM=${SPRING_DATASOURCE_PLATFORM}
- MYSQL_SERVICE_HOST=${MYSQL_SERVICE_HOST}
- MYSQL_SERVICE_PORT=${MYSQL_SERVICE_PORT}
- MYSQL_SERVICE_USER=${MYSQL_SERVICE_USER}
- MYSQL_SERVICE_PASSWORD=${MYSQL_SERVICE_PASSWORD}
- MYSQL_SERVICE_DB_NAME=${MYSQL_SERVICE_DB_NAME}
volumes:
- ./log/standalone-logs/:/home/nacos/logs
ports:
- "${PANEL_APP_PORT_HTTP}:8848"
- "${NACOS_COMMUNICATION_PORT}:9848"
networks:
1panel-network:
external: true