22 lines
445 B
YAML
22 lines
445 B
YAML
version: "3.9"
|
|
services:
|
|
haproxy:
|
|
deploy:
|
|
mode: global
|
|
restart: always
|
|
image: haproxytech/haproxy-debian
|
|
volumes:
|
|
- /etc/timezone:/etc/timezone:ro
|
|
- /etc/localtime:/etc/localtime:ro
|
|
- data:/etc/haproxy:rw
|
|
ports:
|
|
- 80:80
|
|
- 443:443
|
|
volumes:
|
|
data:
|
|
driver: local
|
|
driver_opts:
|
|
type: nfs
|
|
device: ":/srv/docker/volumes/haproxy"
|
|
o: "addr=192.168.8.231,rw,nfsvers=4,async"
|