Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
This repository was archived by the owner on Dec 13, 2018. It is now read-only.

Added "Services" env var for explicit declaration#233

Open
Jascen wants to merge 1 commit into
docker-archive:master from
Jascen:master
Open

Added "Services" env var for explicit declaration #233
Jascen wants to merge 1 commit into
docker-archive:master from
Jascen:master

Conversation

@Jascen

@Jascen Jascen commented Oct 20, 2017
edited
Loading

Copy link
Copy Markdown

Note: I don't really know Python. I hacked my way around, so I apologize if anything just looks plain dumb.

  • You can now indicate your Service(s) to be load balanced ("SERVICES" Environment Variable on HAProxy)
  • Note: Services env var only only apply to services within the same project/namespace.
  • Format is: "ServiceName:Port,Port;ServiceName"...
    • Ex: SERVICES=nginxapp1:443,8080;nginxapp2:80,nginxapp3
  • If any services are specified, HAProxy will only pay attention to the defined services in this variable.
    • Compose: must Link the service to the HAProxy
  • If any ports are specified, they will be the only ports used for that service.
    • Note: If no ports are specified:
      • Swarm: it will check the Service for the Env Var "SERVICE_PORTS" (original behavior)
      • Compose: it will add all exposed ports (original behavior)
  • If a specified service is not on the same network as HAProxy, it will be ignored (original behavior)

Note: I don't really know Python. I hacked my way around, so I apologize if anything just looks plain dumb.
- You can now indicate your Service(s) to be load balanced ("SERVICES" Environment Variable on HAProxy)
- Note: Services env var only only apply to services within the same project/namespace.
- Format is: <ServiceName>:<Port>,<Port>;<ServiceName>...
 - Ex: SERVICES=nginxapp1:443,8080;nginxapp2:80,nginxapp3
- If any services are specified, HAProxy will only pay attention to the defined services in this variable. 
 - Compose: must Link the service to the HAProxy
- If any ports are specified, they will be the only ports used for that service. 
 - Note: If no ports are specified:
 - Swarm: it will check the Service for the Env Var "SERVICE_PORTS" (original behavior)
 - Compose: it will add all exposed ports (original behavior)
- If a specified service is not on the same network as HAProxy, it will be ignored (original behavior)
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Reviewers

No reviews

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

1 participant

AltStyle によって変換されたページ (->オリジナル) /