Remove the third-party service that you rely on when starting the service

Signed-off-by: cai.zhang <cai.zhang@zilliz.com>
pull/4973/head^2
cai.zhang 2020-11-11 18:11:30 +08:00 committed by yefu.chen
parent 057563d936
commit 31d06e6c28
1 changed files with 41 additions and 41 deletions

View File

@ -16,44 +16,44 @@ services:
- "6650:6650"
- "18080:8080"
pd0:
image: pingcap/pd:latest
network_mode: "host"
ports:
- "2379:2379"
- "2380:2380"
volumes:
- /tmp/config/pd.toml:/pd.toml:ro
- /tmp/data:/data
- /tmp/logs:/logs
- /etc/localtime:/etc/localtime:ro
command:
- --name=pd0
- --client-urls=http://0.0.0.0:2379
- --peer-urls=http://0.0.0.0:2380
- --advertise-client-urls=http://127.0.0.1:2379
- --advertise-peer-urls=http://127.0.0.1:2380
- --initial-cluster=pd0=http://127.0.0.1:2380
- --data-dir=/data/pd0
- --log-file=/logs/pd0.log
restart: on-failure
tikv0:
network_mode: "host"
image: pingcap/tikv:latest
ports:
- "20160:20160"
volumes:
- /tmp/config/tikv.toml:/tikv.toml:ro
- /tmp/data:/data
- /tmp/logs:/logs
- /etc/localtime:/etc/localtime:ro
command:
- --addr=0.0.0.0:20160
- --advertise-addr=127.0.0.1:20160
- --data-dir=/data/tikv0
- --pd=127.0.0.1:2379
- --log-file=/logs/tikv0.log
depends_on:
- "pd0"
restart: on-failure
# pd0:
# image: pingcap/pd:latest
# network_mode: "host"
# ports:
# - "2379:2379"
# - "2380:2380"
# volumes:
# - /tmp/config/pd.toml:/pd.toml:ro
# - /tmp/data:/data
# - /tmp/logs:/logs
# - /etc/localtime:/etc/localtime:ro
# command:
# - --name=pd0
# - --client-urls=http://0.0.0.0:2379
# - --peer-urls=http://0.0.0.0:2380
# - --advertise-client-urls=http://127.0.0.1:2379
# - --advertise-peer-urls=http://127.0.0.1:2380
# - --initial-cluster=pd0=http://127.0.0.1:2380
# - --data-dir=/data/pd0
# - --log-file=/logs/pd0.log
# restart: on-failure
#
# tikv0:
# network_mode: "host"
# image: pingcap/tikv:latest
# ports:
# - "20160:20160"
# volumes:
# - /tmp/config/tikv.toml:/tikv.toml:ro
# - /tmp/data:/data
# - /tmp/logs:/logs
# - /etc/localtime:/etc/localtime:ro
# command:
# - --addr=0.0.0.0:20160
# - --advertise-addr=127.0.0.1:20160
# - --data-dir=/data/tikv0
# - --pd=127.0.0.1:2379
# - --log-file=/logs/tikv0.log
# depends_on:
# - "pd0"
# restart: on-failure