File tree Expand file tree Collapse file tree 3 files changed +51
-8
lines changed Expand file tree Collapse file tree 3 files changed +51
-8
lines changed Original file line number Diff line number Diff line change 1+ networks :
2+     loki :
3+ 
4+ services :
5+     loki :
6+         image : grafana/loki:latest 
7+         ports :
8+             - " 3100:3100" 
9+         command : -config.file=/etc/loki/local-config.yaml 
10+         networks :
11+             - loki 
12+ 
13+     promtail :
14+         image : grafana/promtail:latest 
15+         volumes :
16+             - /var/log:/var/log 
17+         command : -config.file=/etc/promtail/config.yml 
18+         networks :
19+             - loki 
20+ 
21+     grafana :
22+         environment :
23+             - GF_PATHS_PROVISIONING=/etc/grafana/provisioning 
24+             - GF_AUTH_ANONYMOUS_ENABLED=true 
25+             - GF_AUTH_ANONYMOUS_ORG_ROLE=Admin 
26+             - GF_FEATURE_TOGGLES_ENABLE=alertingSimplifiedRouting,alertingQueryAndExpressionsStepMode 
27+         entrypoint :
28+             - sh 
29+             - -euc 
30+             - | 
31+                 mkdir -p /etc/grafana/provisioning/datasources 
32+                 cat <<EOF > /etc/grafana/provisioning/datasources/ds.yaml 
33+                 apiVersion: 1 
34+                 datasources: 
35+                 - name: Loki 
36+                   type: loki 
37+                   access: proxy  
38+                   orgId: 1 
39+                   url: http://loki:3100 
40+                   basicAuth: false  
41+                   isDefault: true  
42+                   version: 1 
43+                   editable: false  
44+                 EOF 
45+                 /run.sh 
46+ image : grafana/grafana:latest 
47+         ports :
48+             - " 3000:3000" 
49+         networks :
50+             - loki 
Original file line number Diff line number Diff line change @@ -45,13 +45,6 @@ services:
4545      - neo4j_logs:/log 
4646    networks :
4747      - graphnet 
48-   loki :
49-     image : grafana/loki:latest 
50-     container_name : loki 
51-     networks :
52-       - graphnet 
53-     ports :
54-       - " 3100:3100" 
5548
5649volumes :
5750  neo4j_data :
Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ const initializeDatabase = async () => {
2424        await  AppDataSource . initialize ( ) ; 
2525        server . log . info ( "Database connection initialized" ) ; 
2626    }  catch  ( error )  { 
27-         server . log . error ( "Error during database initialization: " ,  error ) ; 
27+         server . log . error ( { message :  "Error during database initialization" ,  detail :  error } ) ; 
2828        process . exit ( 1 ) ; 
2929    } 
3030} ; 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments