losuler / pihole-dnscrypt-docker

A docker-compose for Pi-hole and DNSCrypt, daemonized with a systemd service file.
GNU General Public License v3.0
55 stars 14 forks source link

services.dnscrypt.environment contains an invalid type, it should be an object, or an array #3

Closed oussamadouhou closed 4 years ago

oussamadouhou commented 4 years ago

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:

networks: pihole_net: driver: bridge ipam: config:

oussamadouhou commented 4 years ago

Issue solved by using forward slash in the TZ option