forked from RTB4FREE/bidder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
loaded.yml
82 lines (75 loc) · 1.92 KB
/
loaded.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
#
# Contains the full stack of the RTB4FREe stack (not including crosstalk, elk, mysql or campaign manager)
# Does contain zookeeper and kafka.
#
version: "3"
services:
zookeeper:
image: "zookeeper"
ports:
- "2181:2181"
networks:
- rtb_net
kafka:
image: "ches/kafka"
environment:
ZOOKEEPER_IP: "zookeeper"
ports:
- "9092:9092"
networks:
- rtb_net
depends_on:
- zookeeper
zerospike:
image: "jacamars/zerospike:v1"
environment:
BROKERLIST: "kafka:9092"
ports:
- "6000:6000"
- "6001:6001"
- "6002:6002"
- "7001:7001"
#volumes:
# - "./cache.db:/cache.db"
networks:
- rtb_net
depends_on:
- kafka
command: bash -c "./wait-for-it.sh kafka:9092 --t=120 && sleep 1; ./zerospike"
bidder:
image: "jacamars/rtb4free:v1"
environment:
BROKERLIST: "kafka:9092"
PUBSUB: "zerospike"
EXTERNAL: "http://localhost:8080"
ACCOUNTING: "NONE"
ports:
- "8080:8080"
- "8155:8155"
- "7379:7379"
- "7000:7000"
#volumes:
# - "./database.json:/database.json"
# - "./payday.json:/Campaigns/payday.json"
networks:
- rtb_net
depends_on:
- kafka
- zerospike
command: bash -c "./wait-for-it.sh kafka:9092 --t=120 && ./wait-for-it.sh zerospike:6000 --t 120 && sleep 1; ./rtb4free"
#command: bash -c "./wait-for-it.sh kafka:9092 -t 120 && ./wait-for-it.sh zerospike:6000 -t 120 && sleep 1; ./rtb4free-jmx"
simulator:
image: "jacamars/rtb4free:v1"
environment:
BIDDER: "bidder:8080"
WIN: "10"
PIXEL: "95"
CLICK: "2"
SLEEP: "100"
SILENT: "-silent"
networks:
- rtb_net
command: bash -c "./wait-for-it.sh $$BIDDER -t 120 && sleep 15; ./load-elastic -host $$BIDDER -win $$WIN -pixel $$PIXEL -click $$CLICK $$SILENT -sleep $$SLEEP"
networks:
rtb_net:
external: true