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
Will my response with example from post created few hours ago help? You need to call them as external, in your current example it creates kind of bind mounts that would even change every redeploy.
https://www.reddit.com/r/portainer/comments/17cyn4p/how\_to\_use\_volume\_in\_portainer\_stack