aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/haproxy/docker-compose.yaml
blob: 126613cb313ada56887d7cbcc6fe9e551c9b1797 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
version: "3.4"
services:
  haproxy:
    image: haproxy:2.7.1-bullseye
    ports:
      - "80:80"
      - "443:443"
      - "5222:5222"
      - "5280:5280"
      - "5443:5443"
      - "143:143"
      - "993:993"
      - "110:110"
      - "995:995"
      - "25:25"
      - "465:465"
      - "587:587"
    volumes:
      - ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg:ro
    networks:
      - proxynet
      - metricsnet
    restart: unless-stopped
    cap_drop:
      - ALL
  # udpproxy:
  #   image: nginx
  #   ports:
  #     - "127.0.0.1:3478:3478/udp"
  #     - "127.0.0.1:5349:5349/udp"
  #     - "80:80"
  #     - "443:443"
  #     - "5222:5222"
  #     - "5280:5280"
  #     - "5443:5443"
  #     - "143:143"
  #     - "993:993"
  #     - "110:110"
  #     - "995:995"
  #     - "25:25"
  #     - "465:465"
  #     - "587:587"
  #   networks:
  #     - proxynet
  #   restart: unless-stopped
  #   volumes:
  #     - ./nginx.conf:/etc/nginx/nginx.conf:ro
  prometheus:
    image: bitnami/prometheus:2.41.0
    networks:
      - metricsnet
    restart: unless-stopped
    ports:
      - "127.0.0.1:9099:9090"
    volumes:
      - metricsvault:/opt/bitnami/prometheus/data
      - ./conf.yml:/opt/bitnami/prometheus/conf/prometheus.yml:ro
    environment:
      - HTTPS_PROXY=socks5h://172.17.0.1:9993
      - HTTP_PROXY=socks5h://172.17.0.1:9993
      - ALL_PROXY=socks5h://172.17.0.1:9993
      - NO_PROXY=localhost,127.0.0.0/8,172.16.0.0/12,10.0.0.0/8,192.168.0.0/16
networks:
  proxynet:
  metricsnet:
volumes:
  metricsvault: