-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Tidb docker compose file #3
Comments
@Anindyadeep use it from here |
@Anindyadeep update in docker compose
provide required permissions updated compose file version: '3'
services:
pd0:
image: pingcap/pd:nightly
ports:
- "2379"
volumes:
- ./tidb/config/pd-nightly-tiflash.toml:/pd.toml:ro
- ./tidb/data:/data
- ./tidb/logs:/logs
command:
- --name=pd0
- --client-urls=http://0.0.0.0:2379
- --peer-urls=http://0.0.0.0:2380
- --advertise-client-urls=http://pd0:2379
- --advertise-peer-urls=http://pd0:2380
- --initial-cluster=pd0=http://pd0:2380
- --data-dir=/data/pd
- --config=/pd.toml
- --log-file=/logs/pd.log
restart: on-failure
tikv:
image: pingcap/tikv:nightly
volumes:
- ./tidb/data:/data
- ./tidb/logs:/logs
command:
- --addr=0.0.0.0:20160
- --advertise-addr=tikv:20160
- --status-addr=tikv:20180
- --data-dir=/data/tikv
- --pd=pd0:2379
- --log-file=/logs/tikv.log
depends_on:
- "pd0"
restart: on-failure
tidb:
image: pingcap/tidb:nightly
ports:
- "4000:4000"
- "10080:10080"
volumes:
- ./tidb/logs:/logs
- ./init-script.sh:/docker-entrypoint-initdb.d/init-script.sh
environment:
- MYSQL_ROOT_PASSWORD=mysecretpass
command:
- --status=10080
- --advertise-address=tidb
- --store=tikv
- --path=pd0:2379
- --log-file=/logs/tidb.log
depends_on:
- "tikv"
restart: on-failure
tiflash:
image: pingcap/tiflash:nightly
volumes:
- ./tidb/config/tiflash-nightly.toml:/tiflash.toml:ro
- ./tidb/config/tiflash-learner-nightly.toml:/tiflash-learner.toml:ro
- ./tidb/data:/data
- ./tidb/logs:/logs
command:
- --config=/tiflash.toml
depends_on:
- "tikv"
- "tidb"
restart: on-failure
phpmyadmin:
image: phpmyadmin
restart: always
environment:
- PMA_HOST=tidb
- PMA_PORT=4000
- PMA_USER=root
PMA_PASSWORD=mypass
- MYSQL_USERNAME=root
- MYSQL_ROOT_PASSWORD=mypass
ports:
- 24581:80 |
for setting the password manually for Tidb Manually set password for root user.
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Forward Request
mysql connection
The text was updated successfully, but these errors were encountered: