|
|
|
@ -138,49 +138,49 @@ services:
|
|
|
|
|
networks:
|
|
|
|
|
- openim
|
|
|
|
|
|
|
|
|
|
prometheus:
|
|
|
|
|
image: ${PROMETHEUS_IMAGE}
|
|
|
|
|
container_name: prometheus
|
|
|
|
|
restart: always
|
|
|
|
|
volumes:
|
|
|
|
|
- ./config/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
|
|
|
- ./config/instance-down-rules.yml:/etc/prometheus/instance-down-rules.yml
|
|
|
|
|
- ${DATA_DIR}/components/prometheus/data:/prometheus
|
|
|
|
|
command:
|
|
|
|
|
- '--config.file=/etc/prometheus/prometheus.yml'
|
|
|
|
|
- '--storage.tsdb.path=/prometheus'
|
|
|
|
|
ports:
|
|
|
|
|
- "19091:9090"
|
|
|
|
|
networks:
|
|
|
|
|
- openim
|
|
|
|
|
|
|
|
|
|
alertmanager:
|
|
|
|
|
image: ${ALERTMANAGER_IMAGE}
|
|
|
|
|
container_name: alertmanager
|
|
|
|
|
restart: always
|
|
|
|
|
volumes:
|
|
|
|
|
- ./config/alertmanager.yml:/etc/alertmanager/alertmanager.yml
|
|
|
|
|
- ./config/email.tmpl:/etc/alertmanager/email.tmpl
|
|
|
|
|
ports:
|
|
|
|
|
- "19093:9093"
|
|
|
|
|
networks:
|
|
|
|
|
- openim
|
|
|
|
|
|
|
|
|
|
grafana:
|
|
|
|
|
image: ${GRAFANA_IMAGE}
|
|
|
|
|
container_name: grafana
|
|
|
|
|
user: root
|
|
|
|
|
restart: always
|
|
|
|
|
environment:
|
|
|
|
|
- GF_SECURITY_ALLOW_EMBEDDING=true
|
|
|
|
|
- GF_SESSION_COOKIE_SAMESITE=none
|
|
|
|
|
- GF_SESSION_COOKIE_SECURE=true
|
|
|
|
|
- GF_AUTH_ANONYMOUS_ENABLED=true
|
|
|
|
|
- GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
|
|
|
|
|
ports:
|
|
|
|
|
- "13000:3000"
|
|
|
|
|
volumes:
|
|
|
|
|
- ${DATA_DIR:-./}/components/grafana:/var/lib/grafana
|
|
|
|
|
networks:
|
|
|
|
|
- openim
|
|
|
|
|
# prometheus:
|
|
|
|
|
# image: ${PROMETHEUS_IMAGE}
|
|
|
|
|
# container_name: prometheus
|
|
|
|
|
# restart: always
|
|
|
|
|
# volumes:
|
|
|
|
|
# - ./config/prometheus.yml:/etc/prometheus/prometheus.yml
|
|
|
|
|
# - ./config/instance-down-rules.yml:/etc/prometheus/instance-down-rules.yml
|
|
|
|
|
# - ${DATA_DIR}/components/prometheus/data:/prometheus
|
|
|
|
|
# command:
|
|
|
|
|
# - '--config.file=/etc/prometheus/prometheus.yml'
|
|
|
|
|
# - '--storage.tsdb.path=/prometheus'
|
|
|
|
|
# ports:
|
|
|
|
|
# - "19091:9090"
|
|
|
|
|
# networks:
|
|
|
|
|
# - openim
|
|
|
|
|
#
|
|
|
|
|
# alertmanager:
|
|
|
|
|
# image: ${ALERTMANAGER_IMAGE}
|
|
|
|
|
# container_name: alertmanager
|
|
|
|
|
# restart: always
|
|
|
|
|
# volumes:
|
|
|
|
|
# - ./config/alertmanager.yml:/etc/alertmanager/alertmanager.yml
|
|
|
|
|
# - ./config/email.tmpl:/etc/alertmanager/email.tmpl
|
|
|
|
|
# ports:
|
|
|
|
|
# - "19093:9093"
|
|
|
|
|
# networks:
|
|
|
|
|
# - openim
|
|
|
|
|
#
|
|
|
|
|
# grafana:
|
|
|
|
|
# image: ${GRAFANA_IMAGE}
|
|
|
|
|
# container_name: grafana
|
|
|
|
|
# user: root
|
|
|
|
|
# restart: always
|
|
|
|
|
# environment:
|
|
|
|
|
# - GF_SECURITY_ALLOW_EMBEDDING=true
|
|
|
|
|
# - GF_SESSION_COOKIE_SAMESITE=none
|
|
|
|
|
# - GF_SESSION_COOKIE_SECURE=true
|
|
|
|
|
# - GF_AUTH_ANONYMOUS_ENABLED=true
|
|
|
|
|
# - GF_AUTH_ANONYMOUS_ORG_ROLE=Admin
|
|
|
|
|
# ports:
|
|
|
|
|
# - "13000:3000"
|
|
|
|
|
# volumes:
|
|
|
|
|
# - ${DATA_DIR:-./}/components/grafana:/var/lib/grafana
|
|
|
|
|
# networks:
|
|
|
|
|
# - openim
|
|
|
|
|
|
|
|
|
|