Skip to content
This repository has been archived by the owner on Dec 13, 2018. It is now read-only.

Some question about multi-ports balance and ADDITIONAL_SERVICES #236

Open
eromoe opened this issue Nov 28, 2017 · 0 comments
Open

Some question about multi-ports balance and ADDITIONAL_SERVICES #236

eromoe opened this issue Nov 28, 2017 · 0 comments

Comments

@eromoe
Copy link

eromoe commented Nov 28, 2017

Hello,

  1. Can I use one lb for different service (different ports) , like below

    version: '2'
    services:
      web:
        image: dockercloud/hello-world
        expose:
          - "80"
      blog:
        image: dockercloud/hello-world
        ports:
          - 8080:80
        expose:
          - "8080"
      lb:
        image: dockercloud/haproxy
        links:
          - web
          - blog
        ports:
          - 8841:80
          - 8842:8080
    

    I wrote this , but can't access by 8841 and 8842

  2. If I use ADDITIONAL_SERVICES , I have to provide the docker-compose.yml 's folder name , such as project_dir ??

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

No branches or pull requests

1 participant