1
0
Fork 0
docker-easy-haproxy/examples/static/docker-compose.yml
Joao Gilberto Magalhaes 5397f0166e Remove version directive from all Docker Compose and Swarm configuration files.
- Eliminated the `version` field across various examples and documentation for simplicity and alignment with newer Docker Compose and Swarm standards.
- Updated relevant documentation and example usage instructions accordingly.
2025-12-04 09:25:05 -05:00

19 lines
454 B
YAML

# To test:
# curl -k -H "Host: host1.local" https://127.0.0.1/
services:
haproxy:
image: byjg/easy-haproxy:4.6.0
volumes:
- ./conf/:/etc/haproxy/static/
- ./host1.local.pem:/certs/haproxy/host1.local.pem
- /var/run/docker.sock:/var/run/docker.sock
environment:
EASYHAPROXY_DISCOVER: static
ports:
- "80:80/tcp"
- "443:443/tcp"
- "1936:1936/tcp"
container:
image: byjg/static-httpserver