File: docker-compose.yml

package info (click to toggle)
go-mmproxy 2.2.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 248 kB
  • sloc: makefile: 12; sh: 7
file content (35 lines) | stat: -rw-r--r-- 758 bytes parent folder | download
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
services:
  echo:
    build:
      context: .
      dockerfile: Dockerfile.echo
    command: ip route replace default via 10.5.5.3 && ncat -kvnl -e /bin/cat 0.0.0.0 9000
    cap_add: [ NET_ADMIN ]
    networks:
      backend:
        ipv4_address: 10.5.5.2

  go-mmproxy:
    build:
      context: ../
      dockerfile: docker-example/Dockerfile
    command: ./go-mmproxy -l 0.0.0.0:1234 -4 10.5.5.2:9000 -p tcp -v 2 -mark 123
    privileged: true
    networks:
      backend:
        ipv4_address: 10.5.5.3
      default:


  haproxy:
    image: haproxy:2.9
    ports: [ 8000:8000 ]
    volumes:
      - ./haproxy.cfg:/usr/local/etc/haproxy/haproxy.cfg

networks:
  backend:
    ipam:
      config:
        - subnet: 10.5.5.0/24
          gateway: 10.5.5.1