appstore-1panel/apps/nacos/2.4.3/docker-compose.yml
Meng Sen 593018d97a 应用标准化
Signed-off-by: Meng Sen <qyg2297248353@gmail.com>
2024-11-27 17:54:18 +08:00

28 lines
740 B
YAML

networks:
1panel-network:
external: true
services:
nacos:
image: nacos/nacos-server:v2.4.3
container_name: ${CONTAINER_NAME}
restart: always
labels:
createdBy: "Apps"
network_mode: ${NETWORK_MODE}
ports:
- ${PANEL_APP_PORT_HTTP}:8848
- ${PANEL_APP_PORT_GRPC_CLIENT}:9848
- ${PANEL_APP_PORT_GRPC_SERVER}:9849
env_file:
- ${GLOBAL_ENV_FILE:-/etc/1panel/envs/global.env}
- ${ENV_FILE:-/etc/1panel/envs/default.env}
volumes:
- ${NACOS_ROOT_PATH}/logs:/home/nacos/logs
- ${NACOS_ROOT_PATH}/data:/home/nacos/data
environment:
- MODE=standalone
- NACOS_SERVER_PORT=8848
- NACOS_AUTH_ENABLE=true
- SPRING_DATASOURCE_PLATFORM=mysql