services.dnscrypt.environment contains an invalid type, it should be an object, or an array
oussamadouhou opened this issue · 1 comments
Hi all,
I'm unable to start the container because of the error "services.dnscrypt.environment contains an invalid type, it should be an object, or an array"
Log file:
-- Logs begin at Thu 2020-08-20 13:01:18 CEST, end at Sun 2020-09-27 23:28:21 CEST. --
Sep 27 23:23:57 raspberrypi systemd[1]: Started Pi-hole DNSCrypt Docker.
Sep 27 23:23:58 raspberrypi docker-compose[8845]: The Compose file './docker-compose.yml' is invalid because:
Sep 27 23:23:58 raspberrypi docker-compose[8845]: services.dnscrypt.environment contains an invalid type, it should be an object, or an array
Sep 27 23:23:58 raspberrypi systemd[1]: pihole-dnscrypt-docker.service: Main process exited, code=exited, status=1/FAILURE
Sep 27 23:23:58 raspberrypi systemd[1]: pihole-dnscrypt-docker.service: Failed with result 'exit-code'.
Sep 27 23:24:32 raspberrypi systemd[1]: Started Pi-hole DNSCrypt Docker.
Sep 27 23:24:33 raspberrypi docker-compose[8867]: The Compose file './docker-compose.yml' is invalid because:
Sep 27 23:24:33 raspberrypi docker-compose[8867]: services.dnscrypt.environment contains an invalid type, it should be an object, or an array
Sep 27 23:24:33 raspberrypi systemd[1]: pihole-dnscrypt-docker.service: Main process exited, code=exited, status=1/FAILURE
Sep 27 23:24:33 raspberrypi systemd[1]: pihole-dnscrypt-docker.service: Failed with result 'exit-code'.
Sep 27 23:26:48 raspberrypi systemd[1]: Started Pi-hole DNSCrypt Docker.
Sep 27 23:26:48 raspberrypi docker-compose[8946]: The Compose file './docker-compose.yml' is invalid because:
Sep 27 23:26:48 raspberrypi docker-compose[8946]: services.dnscrypt.environment contains an invalid type, it should be an object, or an array
Sep 27 23:26:48 raspberrypi systemd[1]: pihole-dnscrypt-docker.service: Main process exited, code=exited, status=1/FAILURE
Sep 27 23:26:48 raspberrypi systemd[1]: pihole-dnscrypt-docker.service: Failed with result 'exit-code'.
Docker-compose.yml file:
version: "3"
services:
dnscrypt:
container_name: dnscrypt-proxy
image: klutchell/dnscrypt-proxy:latest
networks:
pihole_net:
ipv4_address: 10.0.1.2
expose:
- "5300/udp"
- "5300/tcp"
environment:
# TZ: ''
volumes:
- './etc-dnscrypt-proxy:/config'
dns:
- 1.1.1.1
restart: unless-stopped
pihole:
container_name: pihole
image: pihole/pihole:latest
networks:
pihole_net:
ipv4_address: 10.0.1.3
ports:
- "53:53/tcp"
- "53:53/udp"
- "80:80/tcp"
- "443:443/tcp"
environment:
# TZ: ''
# WEBPASSWORD: ''
DNS1: "10.0.1.2#5300"
DNS2: "no"
volumes:
- './etc-pihole/:/etc/pihole/'
- './etc-dnsmasq.d/:/etc/dnsmasq.d/'
dns:
- 1.1.1.1
restart: unless-stopped
depends_on:
- dnscrypt
networks:
pihole_net:
driver: bridge
ipam:
config:
- subnet: 10.0.1.0/24
Issue solved by using forward slash in the TZ option