Guy’s

I’m taking my first steps in docker&portainer.

I want to begin with pihole container as a stack and I’m using below example to create it. Volumes I create are not used, why? What do I need to do? I’ve created them earlier in “Volumes” tab. What else I need to do?

version: "3"
services:
  pihole:
    container_name: pihole
    image: pihole/pihole:latest
    ports:
      - "53:53/tcp"
      - "53:53/udp"
      - "80:80/tcp"
    environment:
      # WEBPASSWORD: 'password'
    volumes:
      - './etc-pihole:/etc/pihole'
      - './etc-dnsmasq.d:/etc/dnsmasq.d'
    restart: unless-stopped