You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-7Lines changed: 9 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -17,7 +17,7 @@ You can use `dockercloud/haproxy` in three different ways:
17
17
18
18
- running in Docker Cloud
19
19
- running with docker legacy links
20
-
- running with docker compose v2(new links)
20
+
- running with Docker Compose v2(new links, compatible with Docker Swarm)
21
21
22
22
### Running in Docker Cloud
23
23
@@ -77,15 +77,17 @@ Legacy link refers to the link created before docker 1.10, and the link created
77
77
**Note**: Any link alias sharing the same prefix and followed by "-/_" with an integer is considered to be from the same service. For example: `web-1` and `web-2` belong to service `web`, `app_1` and `app_2` are from service `app`, but `app1` and `web2` are from different services.
78
78
79
79
80
-
### Running with docker-compose v2(new links)
80
+
### Running with Docker Compose v2(new links, compatible with Docker Swarm)
81
81
82
-
Docker Compose 1.6 supports a new format of the compose file. In the new version(v2), the old link that injects environment variables is deprecated. Similar to using legacy links, here list some differences that you need to notice:
82
+
Docker Compose 1.6 supports a new format of the compose file. In the new version(v2), the old link that injects environment variables is deprecated.
83
83
84
-
- This image must be run using Docker Compose, as it relies on the Docker Compose labels for configuration
85
-
- The container needs access to the docker socket, you must mount the correct files and set the related environment to make it work
84
+
Similar to using legacy links, here list some differences that you need to notice:
85
+
- This image must be run using Docker Compose, as it relies on the Docker Compose labels for configuration.
86
+
- The container needs access to the docker socket, you must mount the correct files and set the related environment to make it work.
86
87
- A link is required in order to ensure that dockercloud/haproxy is aware of which service it needs to balance, although links are not needed for service discovery since docker 1.10. Linked aliases are not required.
87
-
- DO not overwrite `HOSTNAME` environment variable in `dockercloud/haproxy container`
88
-
- As it is the case on Docker Cloud, auto reconfiguration is supported when the linked services scales or/and the linked container starts/stops
88
+
- DO not overwrite `HOSTNAME` environment variable in `dockercloud/haproxy container`.
89
+
- As it is the case on Docker Cloud, auto reconfiguration is supported when the linked services scales or/and the linked container starts/stops.
90
+
- This image is also compatible with Docker Swarm, and supports the docker native `overlay` network across multi-hosts.
89
91
90
92
##### example of docker-compose.yml running in linux:
0 commit comments