26 lines
710 B
YAML
26 lines
710 B
YAML
services:
|
|
haproxy:
|
|
image: "haproxy:${HAPROXY_VERSION}"
|
|
container_name: "haproxy-${CONTEXT}"
|
|
networks:
|
|
haproxy-default:
|
|
extends:
|
|
file: common-settings.yml
|
|
service: common-settings
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
- /opt/docker-data/haproxy-${CONTEXT}/config/haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg
|
|
|
|
networks:
|
|
haproxy-default:
|
|
name: haproxy-${CONTEXT}
|
|
driver: bridge
|
|
driver_opts:
|
|
com.docker.network.enable_ipv6: "false"
|
|
ipam:
|
|
driver: default
|
|
config:
|
|
- subnet: ${DOCKER_SUBNET-172.24.23.0/24}
|