Advertisement
Guest User

Ubuntu/Docker/Portainer/Pihole

a guest
Sep 21st, 2021
1,482
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 0.97 KB | None | 0 0
  1. ---
  2. version: "3.6"
  3. services:
  4.   portainer:
  5.     container_name: portainer
  6.     entrypoint:
  7.      - /portainer
  8.     environment:
  9.      - PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
  10.       - TZ=America/New_York
  11.     image: portainer/portainer-ce:latest
  12.     ipc: shareable
  13.     ports:
  14.      - 9000:9000/tcp
  15.     command: -H unix:///var/run/docker.sock
  16.     restart: always
  17.     volumes:
  18.      - /var/run/docker.sock:/var/run/docker.sock
  19.       - /docker/portainer/config:/data
  20.     working_dir: /
  21.  
  22.   pihole:
  23.     container_name: pihole
  24.     image: pihole/pihole:latest
  25.     ports:
  26.      - "53:53/tcp"
  27.       - "53:53/udp"
  28.       - "67:67/udp"
  29.       - "80:80/tcp"
  30.     environment:
  31.       TZ: 'America/New_York'
  32.       WEBPASSWORD: 'topsecretpassword'
  33.     # Volumes store your data between container upgrades
  34.     volumes:
  35.      - './etc-pihole/:/etc/pihole/'
  36.       - './etc-dnsmasq.d/:/etc/dnsmasq.d/'
  37.     cap_add:
  38.      - NET_ADMIN
  39.     restart: unless-stopped
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement