Fix the compose file.

This commit is contained in:
Andrea Dell'Amico 2020-10-01 16:40:21 +02:00
parent fdd237d757
commit fcb88a7c1d
2 changed files with 6 additions and 6 deletions

View File

@ -8,7 +8,7 @@ haproxy_pkg_state: present
haproxy_enabled: True
haproxy_k_bind_non_local_ip: True
haproxy_docker_container: False
haproxy_docker_compose_dir: /src/haproxy_swarm
haproxy_docker_compose_dir: /srv/haproxy_swarm
haproxy_ha_with_keepalived: False
haproxy_default_port: 80

View File

@ -4,15 +4,15 @@ services:
haproxy:
image: haproxytech/haproxy-debian:{{ haproxy_version }}
volumes:
- '{{ haproxy_cert_dir }}':'{{ haproxy_cert_dir }}':ro
- {{ haproxy_cert_dir }}:{{ haproxy_cert_dir }}:ro
- /etc/haproxy:/etc/haproxy:ro
ports:
- target: '{{ haproxy_default_port }}'
published: '{{ haproxy_default_port }}'
- target: {{ haproxy_default_port }}
published: {{ haproxy_default_port }}
protocol: tcp
mode: host
- target: '{{ haproxy_ssl_port }}'
published: '{{ haproxy_ssl_port }}'
- target: {{ haproxy_ssl_port }}
published: {{ haproxy_ssl_port }}
protocol: tcp
mode: host
{% if docker_swarm_haproxy_networks is defined %}