Advertisement
Guest User

docker compose

a guest
Jan 7th, 2023
176
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.21 KB | None | 0 0
  1. version: "3.9"
  2. # Common environment values
  3. x-environment: &default-tz-puid-pgid
  4.   TZ: $TZ
  5.   PUID: $PUID
  6.   PGID: $PGID
  7. ############################# SERVICES ########################################
  8. services:
  9. ############################# FRONT-END #######################################
  10. #PI-HOLE  
  11.   pihole:
  12.     <<: *common-keys-core
  13.     container_name: pihole
  14.     image: pihole/pihole:latest
  15.     # For DHCP it is recommended to remove these ports and instead add: network_mode: "host"
  16.     #network_mode: "host"
  17.     ports:
  18.      - "53:53/tcp"
  19.       - "53:53/udp"
  20.       #- "67:67/udp" # Only required if you are using Pi-hole as your DHCP server
  21.       - "8080:80/tcp"
  22.     environment:
  23.       TZ: $TZ
  24.       WEBPASSWORD: '1234'
  25.       DNSMASQ_LISTENING: 'all'
  26.       FTLCONF_LOCAL_IPV4: $SERVER_IP
  27.     # Volumes store your data between container upgrades
  28.     volumes:
  29.      - $DOCKERDIR/appdata/pihole:/etc/pihole
  30.       - $DOCKERDIR/appdata/pihole/dnsmasq.d:/etc/dnsmasq.d
  31.     #   https://github.com/pi-hole/docker-pi-hole#note-on-capabilities
  32.     cap_add:
  33.      - NET_ADMIN # Required if you are using Pi-hole as your DHCP server, else not needed
  34.     labels:
  35.      - "com.centurylinklabs.watchtower.enable=false"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement