2024-09-25 09:43:44 +00:00
|
|
|
services:
|
|
|
|
|
haproxy-proxy-balancer:
|
2024-10-29 15:50:41 +00:00
|
|
|
profiles:
|
|
|
|
|
- prod
|
2024-09-25 09:43:44 +00:00
|
|
|
build:
|
|
|
|
|
context: ../proxy-balancer
|
|
|
|
|
dockerfile: Dockerfile
|
|
|
|
|
container_name: haproxy-proxy-balancer
|
|
|
|
|
hostname: haproxy-pb
|
|
|
|
|
volumes:
|
|
|
|
|
- ../proxy-balancer/haproxy:/usr/local/etc/haproxy/
|
|
|
|
|
restart: always
|
|
|
|
|
depends_on:
|
|
|
|
|
wgcf1:
|
|
|
|
|
condition: service_healthy
|
2025-05-09 11:25:17 +00:00
|
|
|
#wgcf2:
|
|
|
|
|
# condition: service_healthy
|
|
|
|
|
#wgcf3:
|
|
|
|
|
# condition: service_healthy
|
|
|
|
|
#wgcf4:
|
|
|
|
|
# condition: service_healthy
|
2024-09-25 09:43:44 +00:00
|
|
|
networks:
|
|
|
|
|
- freedium_net
|
2024-09-25 10:56:47 +00:00
|
|
|
healthcheck:
|
|
|
|
|
test: [ "CMD", "nc", "-z", "localhost", "1080" ]
|
|
|
|
|
interval: 5s
|
|
|
|
|
# interval: 120s
|
|
|
|
|
timeout: 15s
|
|
|
|
|
retries: 3
|