This is now solved, it was an indentation issue, which I had thought I had figured out, but missed.
I hope this is the right place. I am very new to Docker, and am following this guide. I tried copy/pasting the yml directly from the site but ran into some indentation errors/problems. I think I have all those worked out, and am now encountering the errors below.
# docker-compose --verbose -f docker-compose.new.yml config compose.config.config.find: Using configuration files: ./docker-compose.new.yml ERROR: compose.cli.main.main: The Compose file './docker-compose.new.yml' is invalid because: networks.healthcheck value 'disable', 'restart' do not match any of the regexes: '^x-' networks.dns_net value 'ipv4_address', 'ports', 'volumes' do not match any of the regexes: '^x-'
Here is the yml I am using:
version: '3' networks: dns_net: driver: bridge ipam: config: - subnet: 172.20.0.0/16 services: pihole: container_name: pihole hostname: pihole image: pihole/pihole:latest networks: dns_net: ipv4_address: 172.20.0.6 ports: - "53:53/tcp" - "53:53/udp" - "80:80/tcp" - "443:443/tcp" environment: - 'TZ=Australia/Sydney' - 'WEBPASSWORD=yourpasswd' - 'DNS1=172.20.0.7#5053' - 'DNS2=no' volumes: - '/home/pi/pihole/etc-pihole/:/etc/pihole/' - '/home/pi/pihole/etc-dnsmasq.d/:/etc/dnsmasq.d/' restart: unless-stopped unbound: container_name: unbound image: mvance/unbound:latest networks: dns_net: ipv4_address: 172.20.0.7 volumes: - /home/pi/unbound:/opt/unbound/etc/unbound ports: - "5053:5053/tcp" - "5053:5053/udp" healthcheck: disable: true restart: unless-stopped
Can someone tell me what is wrong, or point me in a direction? This is on a ODROID-N2 running CoreELEC 9.2.5. I have ran this exact yml through a few different yml validators/checkers online, and it passes, and Google is no help with the two errors I am getting.