-
Notifications
You must be signed in to change notification settings - Fork 2
/
docker-compose.yml
55 lines (50 loc) · 1.28 KB
/
docker-compose.yml
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
version: "3.0"
services:
proxy:
image: haproxy:1.7
networks:
main:
aliases:
- proxy
ports:
- "11110:11110"
volumes:
- "./conf:/usr/local/etc/haproxy:ro"
uniq1:
image: golang:1.7
networks:
main:
aliases:
- uniq1
ports:
- "11111:11111"
volumes:
- ".:/usr/local/go/src/github.com/bculberson/uniq:rw"
command: bash -c "go run main.go -s --haddr uniq1:11111 --raddr uniq1:11112"
working_dir: /usr/local/go/src/github.com/bculberson/uniq
uniq2:
image: golang:1.7
networks:
main:
aliases:
- uniq2
ports:
- "11113:11113"
volumes:
- ".:/usr/local/go/src/github.com/bculberson/uniq:rw"
command: bash -c "sleep 4 && go run main.go --join proxy:11110 --haddr uniq2:11113 --raddr uniq2:11114"
working_dir: /usr/local/go/src/github.com/bculberson/uniq
uniq3:
image: golang:1.7
networks:
main:
aliases:
- uniq3
ports:
- "11115:11115"
volumes:
- ".:/usr/local/go/src/github.com/bculberson/uniq:rw"
command: bash -c "sleep 4 && go run main.go --join proxy:11110 --haddr uniq3:11115 --raddr uniq3:11116"
working_dir: /usr/local/go/src/github.com/bculberson/uniq
networks:
main: