38 lines
1.0 KiB
Plaintext
38 lines
1.0 KiB
Plaintext
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>'
|