Skip to content

Commit efcac56

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

File tree

1 file changed

+42
-1
lines changed

1 file changed

+42
-1
lines changed

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

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

0 commit comments

Comments
 (0)