chore: update restart policy of Docker containers (#7190)

### Summary

- update the restart policy of Docker containers

---------

Signed-off-by: Prashant Shahi <prashant@signoz.io>
This commit is contained in:
Prashant Shahi 2025-02-28 10:40:20 +05:45 committed by GitHub
parent 4134eb621c
commit 2a56f79e1d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 20 additions and 6 deletions

View File

@ -76,6 +76,9 @@ services:
wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F$${version}/histogram-quantile_$${node_os}_$${node_arch}.tar.gz" wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F$${version}/histogram-quantile_$${node_os}_$${node_arch}.tar.gz"
tar -xvzf histogram-quantile.tar.gz tar -xvzf histogram-quantile.tar.gz
mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile
deploy:
restart_policy:
condition: on-failure
volumes: volumes:
- ../common/clickhouse/user_scripts:/var/lib/clickhouse/user_scripts/ - ../common/clickhouse/user_scripts:/var/lib/clickhouse/user_scripts/
zookeeper-1: zookeeper-1:

View File

@ -73,6 +73,9 @@ services:
wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F$${version}/histogram-quantile_$${node_os}_$${node_arch}.tar.gz" wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F$${version}/histogram-quantile_$${node_os}_$${node_arch}.tar.gz"
tar -xvzf histogram-quantile.tar.gz tar -xvzf histogram-quantile.tar.gz
mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile
deploy:
restart_policy:
condition: on-failure
volumes: volumes:
- ../common/clickhouse/user_scripts:/var/lib/clickhouse/user_scripts/ - ../common/clickhouse/user_scripts:/var/lib/clickhouse/user_scripts/
zookeeper-1: zookeeper-1:

View File

@ -2,7 +2,7 @@ version: "3"
x-common: &common x-common: &common
networks: networks:
- signoz-net - signoz-net
restart: on-failure restart: unless-stopped
logging: logging:
options: options:
max-size: 50m max-size: 50m
@ -79,6 +79,7 @@ services:
wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F$${version}/histogram-quantile_$${node_os}_$${node_arch}.tar.gz" wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F$${version}/histogram-quantile_$${node_os}_$${node_arch}.tar.gz"
tar -xvzf histogram-quantile.tar.gz tar -xvzf histogram-quantile.tar.gz
mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile
restart: on-failure
volumes: volumes:
- ../common/clickhouse/user_scripts:/var/lib/clickhouse/user_scripts/ - ../common/clickhouse/user_scripts:/var/lib/clickhouse/user_scripts/
zookeeper-1: zookeeper-1:
@ -277,6 +278,7 @@ services:
- async - async
- --dsn=tcp://clickhouse:9000 - --dsn=tcp://clickhouse:9000
- --up= - --up=
restart: on-failure
networks: networks:
signoz-net: signoz-net:
name: signoz-net name: signoz-net

View File

@ -2,7 +2,7 @@ version: "3"
x-common: &common x-common: &common
networks: networks:
- signoz-net - signoz-net
restart: on-failure restart: unless-stopped
logging: logging:
options: options:
max-size: 50m max-size: 50m
@ -75,6 +75,7 @@ services:
wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F$${version}/histogram-quantile_$${node_os}_$${node_arch}.tar.gz" wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F$${version}/histogram-quantile_$${node_os}_$${node_arch}.tar.gz"
tar -xvzf histogram-quantile.tar.gz tar -xvzf histogram-quantile.tar.gz
mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile
restart: on-failure
volumes: volumes:
- ../common/clickhouse/user_scripts:/var/lib/clickhouse/user_scripts/ - ../common/clickhouse/user_scripts:/var/lib/clickhouse/user_scripts/
zookeeper-1: zookeeper-1:
@ -199,6 +200,7 @@ services:
depends_on: depends_on:
clickhouse: clickhouse:
condition: service_healthy condition: service_healthy
restart: on-failure
schema-migrator-async: schema-migrator-async:
!!merge <<: *db-depend !!merge <<: *db-depend
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.29} image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.29}
@ -207,6 +209,7 @@ services:
- async - async
- --dsn=tcp://clickhouse:9000 - --dsn=tcp://clickhouse:9000
- --up= - --up=
restart: on-failure
networks: networks:
signoz-net: signoz-net:
name: signoz-net name: signoz-net

View File

@ -2,7 +2,7 @@ version: "3"
x-common: &common x-common: &common
networks: networks:
- signoz-net - signoz-net
restart: on-failure restart: unless-stopped
logging: logging:
options: options:
max-size: 50m max-size: 50m
@ -75,6 +75,7 @@ services:
wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F$${version}/histogram-quantile_$${node_os}_$${node_arch}.tar.gz" wget -O histogram-quantile.tar.gz "https://github.com/SigNoz/signoz/releases/download/histogram-quantile%2F$${version}/histogram-quantile_$${node_os}_$${node_arch}.tar.gz"
tar -xvzf histogram-quantile.tar.gz tar -xvzf histogram-quantile.tar.gz
mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile mv histogram-quantile /var/lib/clickhouse/user_scripts/histogramQuantile
restart: on-failure
volumes: volumes:
- ../common/clickhouse/user_scripts:/var/lib/clickhouse/user_scripts/ - ../common/clickhouse/user_scripts:/var/lib/clickhouse/user_scripts/
zookeeper-1: zookeeper-1:
@ -197,6 +198,7 @@ services:
depends_on: depends_on:
clickhouse: clickhouse:
condition: service_healthy condition: service_healthy
restart: on-failure
schema-migrator-async: schema-migrator-async:
!!merge <<: *db-depend !!merge <<: *db-depend
image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.29} image: signoz/signoz-schema-migrator:${OTELCOL_TAG:-0.111.29}
@ -205,6 +207,7 @@ services:
- async - async
- --dsn=tcp://clickhouse:9000 - --dsn=tcp://clickhouse:9000
- --up= - --up=
restart: on-failure
networks: networks:
signoz-net: signoz-net:
name: signoz-net name: signoz-net

View File

@ -8,7 +8,7 @@ x-common: &common
options: options:
max-size: 50m max-size: 50m
max-file: "3" max-file: "3"
restart: on-failure restart: unless-stopped
services: services:
hotrod: hotrod:
<<: *common <<: *common

View File

@ -8,7 +8,7 @@ x-common: &common
options: options:
max-size: 50m max-size: 50m
max-file: "3" max-file: "3"
restart: on-failure restart: unless-stopped
services: services:
otel-agent: otel-agent:
<<: *common <<: *common

View File

@ -23,7 +23,7 @@ alertmanager:
# depends_on: # depends_on:
# query-service: # query-service:
# condition: service_healthy # condition: service_healthy
restart: on-failure restart: unless-stopped
command: command:
- --queryService.url=http://172.17.0.1:8085 - --queryService.url=http://172.17.0.1:8085
- --storage.path=/data - --storage.path=/data