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

share network #888

Closed
murilolivorato opened this issue Jul 18, 2023 · 2 comments
Closed

share network #888

murilolivorato opened this issue Jul 18, 2023 · 2 comments
Labels
compose Issues pertaining to the usage of Docker Compose question

Comments

@murilolivorato
Copy link

hello , I am using docker-elk .
very nice , thanks for share this code with uss.

well , I am trying to share this network ( docker-compose ) . and access from other network ( other docker compose )

but I was not success .
it is that posible to I aceess from other docker compose ?
the elk network

@antoineco
Copy link
Collaborator

  1. It's possible to connect containers to multiple networks using docker network connect.

  2. Another option is to start the external applications inside a pre-existing network:

    # docker-compose.yml
    
    services:
      myapp:
        image: nginx:alpine
        networks:
          - elk
    
    networks:
      elk:
        external:
          name: dockerelk_elk

@antoineco antoineco added question compose Issues pertaining to the usage of Docker Compose labels Jul 18, 2023
@murilolivorato
Copy link
Author

sory, I thought that the connection was not working . but it is working .
the porblem was in PHP elastic search class not on docker elk .
I solved like this -

elastic/elasticsearch-php#1327

thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
compose Issues pertaining to the usage of Docker Compose question
Projects
None yet
Development

No branches or pull requests

2 participants