-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathdocker-compose.yml
More file actions
142 lines (132 loc) · 3.41 KB
/
docker-compose.yml
File metadata and controls
142 lines (132 loc) · 3.41 KB
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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
version: '3.4'
services:
leaderboardwebapi:
image: ${DOCKER_REGISTRY-}leaderboardwebapi
build:
context: .
dockerfile: LeaderboardWebAPI/Dockerfile
ports:
- "5100:80"
- "50002:50002"
environment:
- DAPR_GRPC_PORT=50002
depends_on:
- redis
- placement
networks:
- leaderboard-dapr
leaderboardwebapi-dapr:
image: "daprio/daprd:1.0.1"
command: ["./daprd",
"-app-id", "leaderboardwebapi",
"-app-port", "80",
"-metrics-port", "9091",
"-log-level", "debug",
"-config", "components/config.yaml",
"-placement-host-address", "placement:50006",
"-dapr-grpc-port", "50002",
"-components-path", "/components"]
volumes:
- "./components/leaderboardwebapi:/components"
- "./certificates/:/certificates"
depends_on:
- leaderboardwebapi
network_mode: "service:leaderboardwebapi"
placement:
image: "daprio/dapr:1.0.1"
command: ["./placement", "-port", "50006"]
ports:
- "50006:50006"
networks:
- leaderboard-dapr
zipkin:
image: "openzipkin/zipkin"
ports:
- "9412:9411"
networks:
- leaderboard-dapr
prometheus:
image: prom/prometheus
volumes:
- ./prometheus.yml:/etc/prometheus/prometheus.yml
command:
- '--config.file=/etc/prometheus/prometheus.yml'
- '--web.listen-address=:8081'
# - '--net=host'
ports:
- "8081:8081"
networks:
- leaderboard-dapr
grafana:
image: grafana/grafana
volumes:
- type: volume
source: grafana-storage
target: /var/lib/grafana
environment:
- GF_SECURITY_ADMIN_PASSWORD=pass
- GF_SMTP_HOST=localhost:25
- GF_SMTP_ENABLED=true
- GF_SMTP_FROM_ADDRESS=alert@retrogamingwebapi.com
- GF_SMTP_SKIP_VERIFY=true
- GF_EXTERNAL_IMAGE_STORAGE_PROVIDER=azure_blob
- GF_EXTERNAL_IMAGE_STORAGE_AZURE_BLOB_ACCOUNT_NAME=...
- GF_EXTERNAL_IMAGE_STORAGE_AZURE_BLOB_ACCOUNT_KEY=...
- GF_EXTERNAL_IMAGE_STORAGE_AZURE_BLOB_CONTAINER_NAME=grafananotifications
depends_on:
- prometheus
ports:
- "3000:3000"
networks:
- leaderboard-dapr
ai-forwarder:
image: "daprio/dapr-localforwarder:latest"
environment:
- APPINSIGHTS_INSTRUMENTATIONKEY=...
- APPINSIGHTS_LIVEMETRICSSTREAMAUTHENTICATIONAPIKEY=...
ports:
- "55678:55678"
networks:
- leaderboard-dapr
redis:
image: "redis"
ports:
- "6380:6379"
networks:
- leaderboard-dapr
twittermonitor:
image: ${DOCKER_REGISTRY-}twittermonitor
build:
context: .
dockerfile: TwitterMonitor/Dockerfile
ports:
- "5110:80"
- "50003:50003"
environment:
- DAPR_GRPC_PORT=50003
depends_on:
- redis
- placement
networks:
- leaderboard-dapr
twittermonitor-dapr:
image: "daprio/daprd:1.0.1"
command: ["./daprd",
"-app-id", "twittermonitor",
"-app-port", "80",
"-metrics-port", "9092",
"-log-level", "info",
"-config", "components/config.yaml",
"-placement-host-address", "placement:50006",
"-dapr-grpc-port", "50003",
"-components-path", "/components"]
volumes:
- "./components/twittermonitor:/components"
- "./certificates/:/certificates"
depends_on:
- twittermonitor
network_mode: "service:twittermonitor"
networks:
leaderboard-dapr:
volumes:
grafana-storage: