appstore-1panel/dockge/nacos/docker-compose.yml
2024-11-28 09:03:16 +00:00

27 lines
636 B
YAML

networks:
1panel-network:
external: true
services:
nacos:
container_name: nacos
env_file:
- ./envs/global.env
- .env
environment:
- MODE=standalone
- NACOS_SERVER_PORT=8848
- NACOS_AUTH_ENABLE=true
- SPRING_DATASOURCE_PLATFORM=mysql
image: nacos/nacos-server:v2.4.3
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
restart: always
volumes:
- ${NACOS_ROOT_PATH}/logs:/home/nacos/logs
- ${NACOS_ROOT_PATH}/data:/home/nacos/data