-
Notifications
You must be signed in to change notification settings - Fork 1
/
stack.yml
83 lines (78 loc) · 2.61 KB
/
stack.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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
---
networks:
host:
name: host
external: true
alpha:
name: alpha
attachable: true
beta:
name: beta
attachable: true
services:
ratcouncil:
image: firecow/ratnation:${DOCKER_TAG:-latest}
networks: [host]
command: council --port 8080
ports:
- { target: 8080, published: 8080, protocol: tcp, mode: host }
ratking1:
image: firecow/ratnation:${DOCKER_TAG:-latest}
networks: [host]
command:
king
--council-host="http://172.17.0.1:8080"
--host="172.17.0.1"
--rathole="bind_port=2333 ports=5000-5001"
--location=CPH
ports:
- { target: 2333, published: 2333, protocol: tcp, mode: host }
- { target: 5000, published: 5000, protocol: tcp, mode: host }
- { target: 5001, published: 5001, protocol: tcp, mode: host }
ratking2:
image: firecow/ratnation:${DOCKER_TAG:-latest}
networks: [host]
command:
king
--council-host="http://172.17.0.1:8080"
--host="172.17.0.1"
--rathole="bind_port=2334 ports=5002-5003"
--rathole="bind_port=2335 ports=5004-5004"
--location=AMS
ports:
- { target: 2334, published: 2334, protocol: tcp, mode: host }
- { target: 2335, published: 2335, protocol: tcp, mode: host }
- { target: 5002, published: 5002, protocol: tcp, mode: host }
- { target: 5003, published: 5003, protocol: tcp, mode: host }
- { target: 5004, published: 5004, protocol: tcp, mode: host }
# <editor-fold desc="Alpha services">
ratling-alpha:
image: firecow/ratnation:${DOCKER_TAG:-latest}
networks: [alpha]
command:
ling
--council-host="http://172.17.0.1:8080"
--rathole="name=alpha local_addr=echoserver-alpha:8080"
deploy: { update_config: { order: start-first, parallelism: 0 } }
echoserver-alpha:
hostname: echoserver-alpha
image: jmalloc/echo-server
networks: [alpha]
deploy: { update_config: { order: start-first, parallelism: 0 } }
# </editor-fold>
# <editor-fold desc="Beta services">
ratling-beta:
image: firecow/ratnation:${DOCKER_TAG:-latest}
networks: [beta]
command:
ling
--council-host="http://172.17.0.1:8080"
--proxy="name=alpha bind_port=2184"
deploy: { update_config: { order: start-first, parallelism: 0 } }
# This requester service should be able to reach echoserver-alpha through the ratling-beta on port 2184
debug-requester-beta:
image: firecow/ratnation:${DOCKER_TAG:-latest}
command: ["debug-requester", "--url=http://ratling-beta:2184"]
networks: [beta]
deploy: { update_config: { order: start-first, parallelism: 0 } }
# </editor-fold>