chore(backend): Loki configureren
De meeste console statements vervangen door Loki
This commit is contained in:
		
							parent
							
								
									0f8bd3df6a
								
							
						
					
					
						commit
						7fd6305fd9
					
				
					 8 changed files with 767 additions and 40 deletions
				
			
		|  | @ -7,7 +7,6 @@ services: | |||
|             POSTGRES_DB: postgres | ||||
|         ports: | ||||
|             - '5432:5432' | ||||
|         network_mode: 'host' | ||||
|         volumes: | ||||
|             - dwengo_postgres_data:/var/lib/postgresql/data | ||||
|             - ./backend/config/db/init.sql:/docker-entrypoint-initdb.d/init.sql | ||||
|  | @ -15,12 +14,23 @@ services: | |||
|     logging: | ||||
|         image: grafana/loki:latest | ||||
|         ports: | ||||
|             - '3100:3100' | ||||
|             - '3102:3102' | ||||
|             - '9095:9095' | ||||
|         network_mode: 'host' | ||||
|         volumes: | ||||
|             - ./config/loki-config.yml:/etc/loki/config.yaml | ||||
|             - ./config/loki/config.yml:/etc/loki/config.yaml | ||||
|             - dwengo_loki_data:/loki | ||||
|         command: -config.file=/etc/loki/config.yaml | ||||
|         restart: unless-stopped | ||||
| 
 | ||||
|     dashboards: | ||||
|         image: grafana/grafana:latest | ||||
|         ports: | ||||
|             - '3000:3000' | ||||
|         volumes: | ||||
|             - dwengo_grafana_data:/var/lib/grafana | ||||
|         restart: unless-stopped | ||||
| 
 | ||||
| volumes: | ||||
|     dwengo_postgres_data: | ||||
|     dwengo_loki_data: | ||||
|     dwengo_grafana_data: | ||||
|  |  | |||
		Reference in a new issue