update docker swarm deploy info (#16308)
Ilya Mashchenko committed
Nov 1, 2023 at 15:05 UTC
c5bde90cdff6e09eaf24eac481e94433ff7bb5c0
1 file changed
+12
-8
integrations/deploy.yaml
+12
-8
@@ -369,12 +369,11 @@
369
services:
370
netdata:
371
image: netdata/netdata:edge
372
- container_name: netdata
373
- ports:
374
- - 19999:19999
375
- restart: unless-stopped
372
+ pid: host
373
+ network_mode: host
374
cap_add:
375
- SYS_PTRACE
376
+ - SYS_ADMIN
377
security_opt:
378
- apparmor:unconfined
379
volumes:
@@ -387,6 +386,7 @@
386
- /sys:/host/sys:ro
387
- /etc/os-release:/host/etc/os-release:ro
388
- /etc/hostname:/etc/hostname:ro
389
+ - /var/run/docker.sock:/var/run/docker.sock:ro
390
{% if $showClaimingOptions %}
391
environment:
392
- NETDATA_CLAIM_TOKEN={% claim_token %}
@@ -395,6 +395,8 @@
395
{% /if %}
396
deploy:
397
mode: global
398
+ restart_policy:
399
+ condition: on-failure
400
volumes:
401
netdataconfig:
402
netdatalib:
@@ -405,12 +407,11 @@
407
services:
408
netdata:
409
image: netdata/netdata:stable
408
- container_name: netdata
409
- ports:
410
- - 19999:19999
411
- restart: unless-stopped
410
+ pid: host
411
+ network_mode: host
412
cap_add:
413
- SYS_PTRACE
414
+ - SYS_ADMIN
415
security_opt:
416
- apparmor:unconfined
417
volumes:
@@ -423,6 +424,7 @@
424
- /sys:/host/sys:ro
425
- /etc/os-release:/host/etc/os-release:ro
426
- /etc/hostname:/etc/hostname:ro
427
+ - /var/run/docker.sock:/var/run/docker.sock:ro
428
{% if $showClaimingOptions %}
429
environment:
430
- NETDATA_CLAIM_TOKEN={% claim_token %}
@@ -431,6 +433,8 @@
433
{% /if %}
434
deploy:
435
mode: global
436
+ restart_policy:
437
+ condition: on-failure
438
volumes:
439
netdataconfig:
440
netdatalib: