-
Notifications
You must be signed in to change notification settings - Fork 0
/
docker-compose.yml
76 lines (73 loc) · 1.92 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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
version: '3'
services:
postgres:
image: "postgres:12"
network_mode: bridge
container_name: postgres
volumes:
- ./docker_data/postgres:/var/lib/postgresql/data
environment:
POSTGRES_DB: ads_stats
POSTGRES_USER: postgres
POSTGRES_PASSWORD: postgres
expose:
- 5432
ports:
- 5431:5432
jaegar:
image: jaegertracing/all-in-one:latest
network_mode: bridge
container_name: jaegar
environment:
COLLECTOR_ZIPKIN_HTTP_PORT: 9411
expose:
- 5775
- 6831
- 6832
- 5778
- 16686
- 14268
- 14250
- 9411
ports:
- 5775:5775
- 6831:6831
- 6832:6832
- 5778:5778
- 16686:16686
- 14268:14268
- 14250:14250
- 9411:9411
ads-stats-app:
image: ads-stats-app:latest
network_mode: bridge
container_name: ads-stats-app
expose:
- 8000
ports:
- "127.0.0.1:8000:8000"
- "127.0.0.1:9090:9090"
restart: unless-stopped
depends_on:
- postgres
- jaegar
command: ["./wait-for-it.sh", "postgres:5432", "jaegar:5775", "jaegar:16686"]
healthcheck:
test: ["CMD", "curl", "http://localhost:8000/ping"]
interval: 5s
timeout: 5s
retries: 10
links:
- postgres
- jaegar
perf-test:
image: perf-test-app:latest
network_mode: bridge
container_name: perf-test
depends_on:
- ads-stats-app
command: ["./wait-for-server.sh", "ads-stats-app", "8000", "java", "-Dis_perf_test_mode=${is_perf_test_mode}","-Dis_time_travel_mode=${is_time_travel_mode}", "-Ddeliveries=${deliveries}", "-Ddelivery_to_query_ratio=${delivery_to_query_ratio}", "-Ddelivery_to_click_ratio=${delivery_to_click_ratio}", "-Dclick_to_install_ratio=${click_to_install_ratio}", "-Drunning_time_in_seconds=${running_time_in_seconds}", "-jar", "app.jar"]
links:
- ads-stats-app
volumes:
postgres-data: