Fix the compose file.
This commit is contained in:
parent
fdd237d757
commit
fcb88a7c1d
|
|
@ -8,7 +8,7 @@ haproxy_pkg_state: present
|
||||||
haproxy_enabled: True
|
haproxy_enabled: True
|
||||||
haproxy_k_bind_non_local_ip: True
|
haproxy_k_bind_non_local_ip: True
|
||||||
haproxy_docker_container: False
|
haproxy_docker_container: False
|
||||||
haproxy_docker_compose_dir: /src/haproxy_swarm
|
haproxy_docker_compose_dir: /srv/haproxy_swarm
|
||||||
haproxy_ha_with_keepalived: False
|
haproxy_ha_with_keepalived: False
|
||||||
|
|
||||||
haproxy_default_port: 80
|
haproxy_default_port: 80
|
||||||
|
|
|
||||||
|
|
@ -4,15 +4,15 @@ services:
|
||||||
haproxy:
|
haproxy:
|
||||||
image: haproxytech/haproxy-debian:{{ haproxy_version }}
|
image: haproxytech/haproxy-debian:{{ haproxy_version }}
|
||||||
volumes:
|
volumes:
|
||||||
- '{{ haproxy_cert_dir }}':'{{ haproxy_cert_dir }}':ro
|
- {{ haproxy_cert_dir }}:{{ haproxy_cert_dir }}:ro
|
||||||
- /etc/haproxy:/etc/haproxy:ro
|
- /etc/haproxy:/etc/haproxy:ro
|
||||||
ports:
|
ports:
|
||||||
- target: '{{ haproxy_default_port }}'
|
- target: {{ haproxy_default_port }}
|
||||||
published: '{{ haproxy_default_port }}'
|
published: {{ haproxy_default_port }}
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
mode: host
|
mode: host
|
||||||
- target: '{{ haproxy_ssl_port }}'
|
- target: {{ haproxy_ssl_port }}
|
||||||
published: '{{ haproxy_ssl_port }}'
|
published: {{ haproxy_ssl_port }}
|
||||||
protocol: tcp
|
protocol: tcp
|
||||||
mode: host
|
mode: host
|
||||||
{% if docker_swarm_haproxy_networks is defined %}
|
{% if docker_swarm_haproxy_networks is defined %}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue