Fix Swarm networking
This commit is contained in:
parent
aa5f8055f5
commit
c0eb766339
3 changed files with 31 additions and 75 deletions
File diff suppressed because one or more lines are too long
|
|
@ -1,4 +1,5 @@
|
|||
# To Install
|
||||
# docker network create --driver overlay --attachable easyhaproxy
|
||||
# docker stack deploy -c easyhaproxy.yml easyhaproxy
|
||||
|
||||
|
||||
|
|
@ -6,7 +7,7 @@ version: "3"
|
|||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.3.1-rc1
|
||||
image: byjg/easy-haproxy:4.3.1-rc2
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./certs:/certs/haproxy
|
||||
|
|
@ -25,6 +26,12 @@ services:
|
|||
- "80:80/tcp"
|
||||
- "443:443/tcp"
|
||||
- "1936:1936/tcp"
|
||||
networks:
|
||||
- easyhaproxy
|
||||
|
||||
networks:
|
||||
easyhaproxy:
|
||||
external: true
|
||||
|
||||
volumes:
|
||||
certs_letsencrypt:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue