nacos-docker/example/cluster-embedded.yaml

46 lines
1.1 KiB
YAML
Raw Normal View History

2020-06-05 10:40:28 +00:00
version: "3"
services:
nacos1:
hostname: nacos1
container_name: nacos1
2021-03-21 07:13:03 +00:00
image: nacos/nacos-server:${NACOS_VERSION}
2020-06-05 10:40:28 +00:00
volumes:
- ./cluster-logs/nacos1:/home/nacos/logs
- ./init.d/custom.properties:/home/nacos/init.d/custom.properties
ports:
- "8848:8848"
2021-04-13 00:31:12 +00:00
- "9848:9848"
2020-06-05 10:40:28 +00:00
- "9555:9555"
env_file:
- ../env/nacos-embedded.env
restart: always
nacos2:
hostname: nacos2
2021-03-21 07:13:03 +00:00
image: nacos/nacos-server:${NACOS_VERSION}
2020-06-05 10:40:28 +00:00
container_name: nacos2
volumes:
- ./cluster-logs/nacos2:/home/nacos/logs
- ./init.d/custom.properties:/home/nacos/init.d/custom.properties
ports:
- "8849:8848"
2021-04-13 00:31:12 +00:00
- "9849:9848"
2020-06-05 10:40:28 +00:00
env_file:
- ../env/nacos-embedded.env
restart: always
nacos3:
hostname: nacos3
2021-03-21 07:13:03 +00:00
image: nacos/nacos-server:${NACOS_VERSION}
2020-06-05 10:40:28 +00:00
container_name: nacos3
volumes:
- ./cluster-logs/nacos3:/home/nacos/logs
- ./init.d/custom.properties:/home/nacos/init.d/custom.properties
ports:
- "8850:8848"
2021-04-13 00:31:12 +00:00
- "9850:9848"
2020-06-05 10:40:28 +00:00
env_file:
- ../env/nacos-embedded.env
restart: always