写点什么

Dokcer Compose 部署 Nebula Graph 配置文件

用户头像
阿呆
关注
发布于: 2021 年 06 月 11 日

该文档记录使用 docker 方式部署 nebula graph 时的配置文件,该配置是配置在一台服务器上,如需部署在不同的机器上,修改对应的配置即可。该配置包含 3 个 meta 服务,3 个 storage 服务,3 个 graph 服务。

version: '3.4'services:  metad0:    image: vesoft/nebula-metad:v2-nightly    environment:      USER: root      TZ:   "${TZ}"    command:      - --meta_server_addrs=metad0:9559,metad1:9559,metad2:9559      - --local_ip=metad0      - --ws_ip=metad0      - --port=9559      - --ws_http_port=19559      - --data_path=/data/meta      - --log_dir=/logs      - --v=0      - --minloglevel=0    healthcheck:      test: ["CMD", "curl", "-sf", "http://metad0:19559/status"]      interval: 30s      timeout: 10s      retries: 3      start_period: 20s    ports:      - 9559      - 19559      - 19560    volumes:      - /backup/nebula_data/meta0:/data/meta      - /backup/nebula_logs/meta0:/logs    networks:      - nebula-net    restart: on-failure    cap_add:      - SYS_PTRACE
metad1: image: vesoft/nebula-metad:v2-nightly environment: USER: root TZ: "${TZ}" command: - --meta_server_addrs=metad0:9559,metad1:9559,metad2:9559 - --local_ip=metad1 - --ws_ip=metad1 - --port=9559 - --ws_http_port=19559 - --data_path=/data/meta - --log_dir=/logs - --v=0 - --minloglevel=0 healthcheck: test: ["CMD", "curl", "-sf", "http://metad1:19559/status"] interval: 30s timeout: 10s retries: 3 start_period: 20s ports: - 9559 - 19559 - 19560 volumes: - /backup/nebula_data/meta1:/data/meta - /backup/nebula_logs/meta1:/logs networks: - nebula-net restart: on-failure cap_add: - SYS_PTRACE
metad2: image: vesoft/nebula-metad:v2-nightly environment: USER: root TZ: "${TZ}" command: - --meta_server_addrs=metad0:9559,metad1:9559,metad2:9559 - --local_ip=metad2 - --ws_ip=metad2 - --port=9559 - --ws_http_port=19559 - --data_path=/data/meta - --log_dir=/logs - --v=0 - --minloglevel=0 healthcheck: test: ["CMD", "curl", "-sf", "http://metad2:19559/status"] interval: 30s timeout: 10s retries: 3 start_period: 20s ports: - 9559 - 19559 - 19560 volumes: - /backup/nebula_data/meta2:/data/meta - /backup/nebula_logs/meta2:/logs networks: - nebula-net restart: on-failure cap_add: - SYS_PTRACE
storaged0: image: vesoft/nebula-storaged:v2-nightly environment: USER: root TZ: "${TZ}" command: - --meta_server_addrs=metad0:9559,metad1:9559,metad2:9559 - --local_ip=storaged0 - --ws_ip=storaged0 - --port=9779 - --ws_http_port=19779 - --data_path=/data/storage - --log_dir=/logs - --v=0 - --minloglevel=0 depends_on: - metad0 - metad1 - metad2 healthcheck: test: ["CMD", "curl", "-sf", "http://storaged0:19779/status"] interval: 30s timeout: 10s retries: 3 start_period: 20s ports: - 9779 - 19779 - 19780 volumes: - /backup/nebula_data/storage0:/data/storage - /backup/nebula_logs/storage0:/logs networks: - nebula-net restart: on-failure cap_add: - SYS_PTRACE
storaged1: image: vesoft/nebula-storaged:v2-nightly environment: USER: root TZ: "${TZ}" command: - --meta_server_addrs=metad0:9559,metad1:9559,metad2:9559 - --local_ip=storaged1 - --ws_ip=storaged1 - --port=9779 - --ws_http_port=19779 - --data_path=/data/storage - --log_dir=/logs - --v=0 - --minloglevel=0 depends_on: - metad0 - metad1 - metad2 healthcheck: test: ["CMD", "curl", "-sf", "http://storaged1:19779/status"] interval: 30s timeout: 10s retries: 3 start_period: 20s ports: - 9779 - 19779 - 19780 volumes: - /backup/nebula_data/storage1:/data/storage - /backup/nebula_logs/storage1:/logs networks: - nebula-net restart: on-failure cap_add: - SYS_PTRACE
storaged2: image: vesoft/nebula-storaged:v2-nightly environment: USER: root TZ: "${TZ}" command: - --meta_server_addrs=metad0:9559,metad1:9559,metad2:9559 - --local_ip=storaged2 - --ws_ip=storaged2 - --port=9779 - --ws_http_port=19779 - --data_path=/data/storage - --log_dir=/logs - --v=0 - --minloglevel=0 depends_on: - metad0 - metad1 - metad2 healthcheck: test: ["CMD", "curl", "-sf", "http://storaged2:19779/status"] interval: 30s timeout: 10s retries: 3 start_period: 20s ports: - 9779 - 19779 - 19780 volumes: - /backup/nebula_data/storage2:/data/storage - /backup/nebula_logs/storage2:/logs networks: - nebula-net restart: on-failure cap_add: - SYS_PTRACE
graphd: image: vesoft/nebula-graphd:v2-nightly environment: USER: root TZ: "${TZ}" command: - --meta_server_addrs=metad0:9559,metad1:9559,metad2:9559 - --port=9669 - --local_ip=graphd - --ws_ip=graphd - --ws_http_port=19669 - --log_dir=/logs - --v=0 - --minloglevel=0 depends_on: - storaged0 - storaged1 - storaged2 healthcheck: test: ["CMD", "curl", "-sf", "http://graphd:19669/status"] interval: 30s timeout: 10s retries: 3 start_period: 20s ports: - "9669:9669" - 19669 - 19670 volumes: - /backup/nebula_logs/graph:/logs networks: - nebula-net restart: on-failure cap_add: - SYS_PTRACE
graphd1: image: vesoft/nebula-graphd:v2-nightly environment: USER: root TZ: "${TZ}" command: - --meta_server_addrs=metad0:9559,metad1:9559,metad2:9559 - --port=9669 - --local_ip=graphd1 - --ws_ip=graphd1 - --ws_http_port=19669 - --log_dir=/logs - --v=0 - --minloglevel=0 depends_on: - storaged0 - storaged1 - storaged2 healthcheck: test: ["CMD", "curl", "-sf", "http://graphd1:19669/status"] interval: 30s timeout: 10s retries: 3 start_period: 20s ports: - 9669 - 19669 - 19670 volumes: - /backup/nebula_logs/graph1:/logs networks: - nebula-net restart: on-failure cap_add: - SYS_PTRACE
graphd2: image: vesoft/nebula-graphd:v2-nightly environment: USER: root TZ: "${TZ}" command: - --meta_server_addrs=metad0:9559,metad1:9559,metad2:9559 - --port=9669 - --local_ip=graphd2 - --ws_ip=graphd2 - --ws_http_port=19669 - --log_dir=/logs - --v=0 - --minloglevel=0 depends_on: - storaged0 - storaged1 - storaged2 healthcheck: test: ["CMD", "curl", "-sf", "http://graphd2:19669/status"] interval: 30s timeout: 10s retries: 3 start_period: 20s ports: - 9669 - 19669 - 19670 volumes: - /backup/nebula_logs/graph2:/logs networks: - nebula-net restart: on-failure cap_add: - SYS_PTRACE
networks: nebula-net:
复制代码


发布于: 2021 年 06 月 11 日阅读数: 17
用户头像

阿呆

关注

坚守准则,认真做事。 2018.05.22 加入

还未添加个人简介

评论

发布
暂无评论
Dokcer Compose部署Nebula Graph配置文件