Skip to content

Commit b64048c

Browse files
committed
feat: #209 install victoriametrics as a part of self-hosted workflow
1 parent e5dc945 commit b64048c

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

Diff for: app/Console/Commands/SelfHostPtah.php

+43-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,45 @@ public function handle()
213213
'rewriteRules' => [],
214214
],
215215
[
216-
'name' => 'app',
216+
'name' => 'victoriametrics',
217+
'placementNodeId' => $node->id,
218+
'launchMode' => LaunchMode::Daemon->value,
219+
'dockerRegistryId' => null,
220+
'dockerImage' => 'victoriametrics/victoria-metrics',
221+
'releaseCommand' => [
222+
'command' => null,
223+
],
224+
'command' => null,
225+
'healthcheck' => [
226+
'command' => null,
227+
'interval' => 10,
228+
'timeout' => 5,
229+
'retries' => 3,
230+
'startPeriod' => 30,
231+
'startInterval' => 5,
232+
],
233+
'backups' => [],
234+
'workers' => [],
235+
'envVars' => [],
236+
'secretVars' => [],
237+
'configFiles' => [],
238+
'secretFiles' => [],
239+
'volumes' => [
240+
[
241+
'id' => ResourceId::make('volume'),
242+
'name' => 'data',
243+
'path' => '/victoria-metrics-data',
244+
],
245+
],
246+
'replicas' => 1,
247+
'ports' => [],
248+
'caddy' => [],
249+
'fastcgiVars' => null,
250+
'redirectRules' => [],
251+
'rewriteRules' => [],
252+
],
253+
[
254+
'name' => 'ptah-server',
217255
'launchMode' => LaunchMode::Daemon->value,
218256
'dockerRegistryId' => null,
219257
'dockerImage' => 'ghcr.io/ptah-sh/ptah-server:latest',
@@ -287,6 +325,10 @@ public function handle()
287325
'name' => 'BILLING_ENABLED',
288326
'value' => 'false',
289327
],
328+
[
329+
'name' => 'VICTORIAMETRICS_URL',
330+
'value' => 'http://victoriametrics.server.ptah.local:8428',
331+
],
290332
],
291333
'secretVars' => [],
292334
'configFiles' => [],

0 commit comments

Comments
 (0)