-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
examples/compose: Fix missing permissions #5426
Conversation
c00b20c
to
bda8ab8
Compare
I would like to make an alternative recommendation: in the get started local guide, I changed it to use a local mysql configuration file:
This helps remove 1 level of indirection, and the |
@chapsuk What's your environment? Port 15306 for vtgate container is exposed on your host. So @morgo The host in our case will be variable based on user's docker ip. Also the compose example does not require or depend on mysql being available on PATH. It uses mysql available in any of the containers. |
@jawabuu thanks for response.
docker desktop 2.1.0.4 (Docker version 19.03.4)
The
The Fresh clone example:
|
@chapsuk Thanks for this. |
Mac
≻ docker-compose ps
Name Command State Ports
-----------------------------------------------------------------------------------------------------------------------------------------------------------------------
compose_consul1_1 docker-entrypoint.sh agent ... Up 8300/tcp, 8301/tcp, 8301/udp, 8302/tcp, 8302/udp, 0.0.0.0:8400->8400/tcp,
0.0.0.0:8500->8500/tcp, 0.0.0.0:8600->8600/tcp, 8600/udp
compose_consul2_1 docker-entrypoint.sh agent ... Up 8300/tcp, 8301/tcp, 8301/udp, 8302/tcp, 8302/udp, 8400/tcp, 8500/tcp,
8600/tcp, 8600/udp
compose_consul3_1 docker-entrypoint.sh agent ... Up 8300/tcp, 8301/tcp, 8301/udp, 8302/tcp, 8302/udp, 8400/tcp, 8500/tcp,
8600/tcp, 8600/udp
compose_schemaload_test_keyspace_1 sh -c /script/schemaload.sh Up
compose_schemaload_unsharded_keyspace_1 sh -c /script/schemaload.sh Up
compose_vtctld_1 sh -c $VTROOT/bin/vtctld ... Up 0.0.0.0:32768->15999/tcp, 0.0.0.0:15000->8080/tcp
compose_vtgate_1 sh -c /script/run-forever. ... Up 0.0.0.0:15306->15306/tcp, 0.0.0.0:32776->15999/tcp, 0.0.0.0:15099->8080/tcp
compose_vttablet101_1 sh -c /script/vttablet-up. ... Up (healthy) 0.0.0.0:32774->15999/tcp, 0.0.0.0:32777->3306/tcp, 0.0.0.0:15101->8080/tcp
compose_vttablet102_1 sh -c /script/vttablet-up. ... Up (healthy) 0.0.0.0:32771->15999/tcp, 0.0.0.0:32780->3306/tcp, 0.0.0.0:15102->8080/tcp
compose_vttablet201_1 sh -c /script/vttablet-up. ... Up (healthy) 0.0.0.0:32775->15999/tcp, 0.0.0.0:32779->3306/tcp, 0.0.0.0:15201->8080/tcp
compose_vttablet202_1 sh -c /script/vttablet-up. ... Up (healthy) 0.0.0.0:32769->15999/tcp, 0.0.0.0:32773->3306/tcp, 0.0.0.0:15202->8080/tcp
compose_vttablet301_1 sh -c /script/vttablet-up. ... Up (healthy) 0.0.0.0:32770->15999/tcp, 0.0.0.0:32778->3306/tcp, 0.0.0.0:15301->8080/tcp
compose_vtwork_1 sh -c $VTROOT/bin/vtworker ... Up 0.0.0.0:32772->15999/tcp, 0.0.0.0:15100->8080/tcp Not have a problem with
|
Does this work? |
Yes
|
I think I have zeroed on the issue referenced here By any chance would you know what your docker ip is? Test if this works |
Yep, i can use my docker host ip and it works fine. |
Excellent!! |
bda8ab8
to
80fe5fa
Compare
Using external ip for internal communication between containers not a good way, |
This is exactly the point. We want to simulate external communication to vtgate not necessarily between containers where the host |
Signed-off-by: Maxim Krasilnikov <[email protected]> Signed-off-by: Maxim Krasilnikov <[email protected]>
80fe5fa
to
ad8c344
Compare
ok, PTAL |
Hi there 👋
Thanks for the rich beginners examples set!
I'm followed the docker-compose example and caught the small fault: