[add] pihole
This commit is contained in:
		
							parent
							
								
									935567669b
								
							
						
					
					
						commit
						7c5c0b242e
					
				
					 5 changed files with 45 additions and 9 deletions
				
			
		| 
						 | 
				
			
			@ -1,9 +1,5 @@
 | 
			
		|||
---
 | 
			
		||||
version: "3"
 | 
			
		||||
networks:
 | 
			
		||||
  gitea:
 | 
			
		||||
    external: false
 | 
			
		||||
    
 | 
			
		||||
version: "2.1"
 | 
			
		||||
services:
 | 
			
		||||
  gitea:
 | 
			
		||||
    image: gitea/gitea:latest
 | 
			
		||||
| 
						 | 
				
			
			@ -11,8 +7,6 @@ services:
 | 
			
		|||
    environment:
 | 
			
		||||
      - USER_UID=1000
 | 
			
		||||
      - USER_GID=1000
 | 
			
		||||
    networks:
 | 
			
		||||
      - gitea  
 | 
			
		||||
    volumes:
 | 
			
		||||
      - ./data:/data
 | 
			
		||||
      - /etc/timezone:/etc/timezone:ro
 | 
			
		||||
| 
						 | 
				
			
			@ -20,6 +14,5 @@ services:
 | 
			
		|||
    ports:
 | 
			
		||||
      - "8300:3000"
 | 
			
		||||
      - "222:22"
 | 
			
		||||
    restart: unless-stopped  
 | 
			
		||||
    
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
							
								
								
									
										24
									
								
								pihole/docker-compose.yml
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										24
									
								
								pihole/docker-compose.yml
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,24 @@
 | 
			
		|||
version: "3"
 | 
			
		||||
 | 
			
		||||
# More info at https://github.com/pi-hole/docker-pi-hole/ and https://docs.pi-hole.net/
 | 
			
		||||
services:
 | 
			
		||||
  pihole:
 | 
			
		||||
    container_name: pihole
 | 
			
		||||
    image: pihole/pihole:latest
 | 
			
		||||
    ports:
 | 
			
		||||
      - "53:53/tcp"
 | 
			
		||||
      - "53:53/udp"
 | 
			
		||||
      - "67:67/udp"
 | 
			
		||||
      - "80:80/tcp"
 | 
			
		||||
    environment:
 | 
			
		||||
      TZ: 'Europe/London'
 | 
			
		||||
      WEBPASSWORD: '2twN2nwWyvEEm2L'
 | 
			
		||||
    # Volumes store your data between container upgrades
 | 
			
		||||
    volumes:
 | 
			
		||||
      - './etc-pihole/:/etc/pihole/'
 | 
			
		||||
      - './etc-dnsmasq.d/:/etc/dnsmasq.d/'
 | 
			
		||||
    # Recommended but not required (DHCP needs NET_ADMIN)
 | 
			
		||||
    #   https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
 | 
			
		||||
    cap_add:
 | 
			
		||||
      - NET_ADMIN
 | 
			
		||||
    restart: unless-stopped
 | 
			
		||||
							
								
								
									
										8
									
								
								pihole/etc-dnsmasq.d/.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								pihole/etc-dnsmasq.d/.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,8 @@
 | 
			
		|||
# .gitignore sample
 | 
			
		||||
###################
 | 
			
		||||
 | 
			
		||||
# Ignore all files in this dir...
 | 
			
		||||
*
 | 
			
		||||
 | 
			
		||||
# ... except for this one.
 | 
			
		||||
!.gitignore
 | 
			
		||||
							
								
								
									
										8
									
								
								pihole/etc-pihole/.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										8
									
								
								pihole/etc-pihole/.gitignore
									
										
									
									
										vendored
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,8 @@
 | 
			
		|||
# .gitignore sample
 | 
			
		||||
###################
 | 
			
		||||
 | 
			
		||||
# Ignore all files in this dir...
 | 
			
		||||
*
 | 
			
		||||
 | 
			
		||||
# ... except for this one.
 | 
			
		||||
!.gitignore
 | 
			
		||||
							
								
								
									
										3
									
								
								pihole/readme.md
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										3
									
								
								pihole/readme.md
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,3 @@
 | 
			
		|||
# Pi Hole
 | 
			
		||||
 | 
			
		||||
Text
 | 
			
		||||
		Loading…
	
	Add table
		
		Reference in a new issue