Compare commits
	
		
			2 Commits
		
	
	
		
			4d319919d9
			...
			15fb0079c1
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 15fb0079c1 | |||
| de0dfd63c6 | 
							
								
								
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								.gitignore
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1,3 @@
 | 
			
		||||
.env
 | 
			
		||||
data/
 | 
			
		||||
misc/
 | 
			
		||||
							
								
								
									
										46
									
								
								docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										46
									
								
								docker-compose.yml
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,46 @@
 | 
			
		||||
version: '3'
 | 
			
		||||
services:
 | 
			
		||||
  postgres:
 | 
			
		||||
    image: postgres:latest
 | 
			
		||||
    environment:
 | 
			
		||||
      - POSTGRES_USER=grafana
 | 
			
		||||
      - POSTGRES_PASSWORD
 | 
			
		||||
      - POSTGRES_DB=grafanadb
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./data/postgres:/var/lib/postgresql/data/
 | 
			
		||||
    restart: always
 | 
			
		||||
    healthcheck:
 | 
			
		||||
      test: pg_isready -U grafana -d grafanadb
 | 
			
		||||
      interval: 10s
 | 
			
		||||
      timeout: 5s
 | 
			
		||||
      retries: 5
 | 
			
		||||
 | 
			
		||||
  redis:
 | 
			
		||||
    image: redis:latest
 | 
			
		||||
    restart: always
 | 
			
		||||
    healthcheck:
 | 
			
		||||
      test: ["CMD", "redis-cli", "ping"]
 | 
			
		||||
      interval: 10s
 | 
			
		||||
      timeout: 3s
 | 
			
		||||
      retries: 3
 | 
			
		||||
 | 
			
		||||
  grafana:
 | 
			
		||||
    image: grafana/grafana:latest
 | 
			
		||||
    user: "1000"
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./data/grafana:/var/lib/grafana
 | 
			
		||||
      - ./data/grafana-config:/etc/grafana
 | 
			
		||||
    ports:
 | 
			
		||||
      - 127.0.0.1:84:3000
 | 
			
		||||
    restart: always
 | 
			
		||||
 | 
			
		||||
  prometheus:
 | 
			
		||||
    image: prom/prometheus:latest
 | 
			
		||||
    restart: always
 | 
			
		||||
    command:
 | 
			
		||||
      - --config.file=/etc/prometheus/prometheus.yml
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./data/prometheus.yml:/etc/prometheus/prometheus.yml
 | 
			
		||||
      - ./data/prometheus:/prometheus
 | 
			
		||||
    extra_hosts:
 | 
			
		||||
      - "host.docker.internal:host-gateway"
 | 
			
		||||
		Reference in New Issue
	
	Block a user