First Push
This commit is contained in:
37
docker-compose.yml_docker
Normal file
37
docker-compose.yml_docker
Normal file
@@ -0,0 +1,37 @@
|
||||
version: '3.9'
|
||||
|
||||
# This is using local volumes. If you would like an example of nfs volumes look in docker-compose.yml_swarm.
|
||||
volumes:
|
||||
pihole-data:
|
||||
pihole-unbound:
|
||||
|
||||
services:
|
||||
app:
|
||||
image: <your built image>
|
||||
hostname: Pihole
|
||||
volumes:
|
||||
- type: volume
|
||||
source: pihole-data
|
||||
target: /etc/pihole
|
||||
# volume:
|
||||
# nocopy: true
|
||||
- type: volume
|
||||
source: pihole-unbound
|
||||
target: /etc/unbound
|
||||
# volume:
|
||||
# nocopy: true
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- type: tmpfs
|
||||
target: /dev/shm
|
||||
tmpfs:
|
||||
size: 2048000000
|
||||
ports:
|
||||
- "443:443/tcp"
|
||||
- "53:53/tcp"
|
||||
- "53:53/udp"
|
||||
- "80:80/tcp" #Allows use of different port to access pihole web interface when other docker containers use port 80
|
||||
# - 5335:5335/tcp # Uncomment to enable unbound access on local server
|
||||
# - 22/tcp # Uncomment to enable SSH
|
||||
environment:
|
||||
TZ: <your-timezone>
|
||||
FTLCONF_webserver_api_password: '<password>'
|
||||
Reference in New Issue
Block a user