Skip to content
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

Publish port and volume #1

Open
king-sley-o opened this issue Jun 18, 2022 · 2 comments
Open

Publish port and volume #1

king-sley-o opened this issue Jun 18, 2022 · 2 comments

Comments

@king-sley-o
Copy link

Good day, please what is the best way to add volume and publish port. I see that is left out.

@wagnerjfr
Copy link
Owner

Hi! This way right?

for N in 1 2 3 4
  do docker run -d --name=mysql$N --hostname=mysql$N --net=innodbnet -p330$N:33006 \
      -v $PWD/d$N:/var/lib/mysql \
      -e MYSQL_ROOT_PASSWORD=root mysql/mysql-server:8.0
done

@king-sley-o
Copy link
Author

king-sley-o commented Jun 18, 2022

Ok. Thanks. Just a thought. Can the exposed port in MySQL router be used instead of publishing different ports on each node?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants