Better examples for Swarm
This commit is contained in:
parent
7dc683b254
commit
aa5f8055f5
6 changed files with 208 additions and 0 deletions
33
examples/swarm/easyhaproxy.yml
Normal file
33
examples/swarm/easyhaproxy.yml
Normal file
|
|
@ -0,0 +1,33 @@
|
|||
# To Install
|
||||
# docker stack deploy -c easyhaproxy.yml easyhaproxy
|
||||
|
||||
|
||||
version: "3"
|
||||
|
||||
services:
|
||||
haproxy:
|
||||
image: byjg/easy-haproxy:4.3.1-rc1
|
||||
volumes:
|
||||
- /var/run/docker.sock:/var/run/docker.sock
|
||||
- ./certs:/certs/haproxy
|
||||
- certs_letsencrypt:/certs/letsencrypt
|
||||
deploy:
|
||||
replicas: 1
|
||||
environment:
|
||||
EASYHAPROXY_DISCOVER: swarm
|
||||
EASYHAPROXY_SSL_MODE: "loose"
|
||||
EASYHAPROXY_LETSENCRYPT_EMAIL: changeme@example.org
|
||||
HAPROXY_CUSTOMERRORS: "true"
|
||||
HAPROXY_USERNAME: admin
|
||||
HAPROXY_PASSWORD: password
|
||||
HAPROXY_STATS_PORT: 1936
|
||||
ports:
|
||||
- "80:80/tcp"
|
||||
- "443:443/tcp"
|
||||
- "1936:1936/tcp"
|
||||
|
||||
volumes:
|
||||
certs_letsencrypt:
|
||||
# external: true
|
||||
# certs_haproxy:
|
||||
# external: true
|
||||
Loading…
Add table
Add a link
Reference in a new issue