-
Notifications
You must be signed in to change notification settings - Fork 16
/
quickstart.yml
150 lines (141 loc) · 3.8 KB
/
quickstart.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
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
143
144
145
146
147
148
149
150
version: '3'
services:
docker-registry:
image: registry:2
ports:
- '5001:5000'
volumes:
- ./docker-registry-config.yaml:/etc/docker/registry/config.yml
networks:
- ch_ntw
ch_server:
image: clickhouse/clickhouse-server:22.6
ports:
- '8123:8123'
- '9000:9000'
volumes:
- ./ch_server_db:/var/lib/clickhouse
networks:
- ch_ntw
nats:
image: nats:latest
command:
- '--jetstream'
- '--http_port'
- '8222'
- '--auth'
- 'UfmrJOYwYCCsgQvxvcfJ3BdI6c8WBbnD'
environment:
NATS_HTTP_PORT_NUMBER: 8222
expose:
- '4222'
ports:
- '8222:8222'
- '4222:4222'
networks:
- ch_ntw
grafana:
image: grafana/grafana
ports:
- 3000:3000
networks:
- ch_ntw
kubvizagent:
entrypoint: '/k8smetrics_agent'
build:
context: ./
dockerfile: quickstart/dockerfiles/agent/Dockerfile.Kubviz
restart: always
environment:
NATS_TOKEN: 'UfmrJOYwYCCsgQvxvcfJ3BdI6c8WBbnD'
NATS_ADDRESS: 'nats://nats:4222'
CLUSTER_NAME: 'Kubviz'
CONFIG_LOCATION: '/etc/myapp/civo'
# ports:
# - '8090:8090'
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
reservations:
cpus: '0.25'
memory: 64M
networks:
- ch_ntw
gitagent:
entrypoint: '/agent'
build:
context: ./
dockerfile: quickstart/dockerfiles/agent/Dockerfile.Git
restart: always
environment:
NATS_TOKEN: 'UfmrJOYwYCCsgQvxvcfJ3BdI6c8WBbnD'
NATS_ADDRESS: 'nats://nats:4222'
CLUSTER_NAME: 'Kubviz'
PORT: '8090'
ports:
- '8090:8090'
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
reservations:
cpus: '0.25'
memory: 64M
networks:
- ch_ntw
containeragent:
entrypoint: '/agent'
build:
context: ./
dockerfile: quickstart/dockerfiles/agent/Dockerfile.Container
restart: always
environment:
NATS_TOKEN: 'UfmrJOYwYCCsgQvxvcfJ3BdI6c8WBbnD'
NATS_ADDRESS: 'nats://nats:4222'
CLUSTER_NAME: 'Kubviz'
PORT: '8091'
ports:
- '8091:8091'
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
reservations:
cpus: '0.25'
memory: 64M
networks:
- ch_ntw
client:
entrypoint: '/k8smetrics_client'
build:
context: ./
dockerfile: quickstart/dockerfiles/client/Dockerfile.Clients
restart: always
environment:
NATS_TOKEN: 'UfmrJOYwYCCsgQvxvcfJ3BdI6c8WBbnD'
NATS_ADDRESS: 'nats://nats:4222'
DB_ADDRESS: 'ch_server'
DB_PORT: '9000'
depends_on:
- containeragent
- gitagent
- kubvizagent
# ports:
# - '8091:8091'
deploy:
resources:
limits:
cpus: '0.50'
memory: 256M
reservations:
cpus: '0.25'
memory: 64M
networks:
- ch_ntw
networks:
ch_ntw:
driver: bridge