2024-07-17 16:30:13 +08:00
|
|
|
version: "3.8"
|
|
|
|
|
|
|
|
networks:
|
|
|
|
1panel-network:
|
|
|
|
external: true
|
|
|
|
|
|
|
|
services:
|
|
|
|
nacos:
|
2024-07-20 13:58:50 +08:00
|
|
|
image: nacos/nacos-server:v2.4.0
|
2024-07-17 16:30:13 +08:00
|
|
|
container_name: ${CONTAINER_NAME}
|
|
|
|
restart: always
|
|
|
|
labels:
|
|
|
|
createdBy: "Apps"
|
2024-07-31 17:36:44 +08:00
|
|
|
network_mode: ${NETWORK_MODE}
|
2024-07-17 16:30:13 +08:00
|
|
|
ports:
|
|
|
|
- ${PANEL_APP_PORT_HTTP}:8848
|
2024-07-31 17:36:44 +08:00
|
|
|
- ${PANEL_APP_PORT_GRPC_CLIENT}:9848
|
|
|
|
- ${PANEL_APP_PORT_GRPC_SERVER}:9849
|
2024-07-20 13:43:02 +08:00
|
|
|
env_file:
|
|
|
|
- /etc/1panel/envs/global.env
|
|
|
|
- ${ENV_FILE:-/etc/1panel/envs/default.env}
|
2024-07-17 16:30:13 +08:00
|
|
|
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
|