docker-doh icon indicating copy to clipboard operation
docker-doh copied to clipboard

Near line 10 (last key parsed 'listen'): expected a comma or array terminator ']', but got ':' instead

Open OdinGitDat opened this issue 3 years ago • 2 comments

For some reason the environment variables are not applied correctly. This is my compose:

version: "3"

services:
  doh-server:
    image: satishweb/doh-server
    environment:
      - UPSTREAM_DNS_SERVER="udp:pihole:53"
      - DOH_HTTP_PREFIX="/dns-query"
      - DOH_SERVER_LISTEN=":8053"

log reports this:

|---------------------------------------------------------------------------------------------
| Starting DNS Over HTTP Service 
| ENTRYPOINT: Loading docker secrets if found...
| ENTRYPOINT: app-config was not available, running given parameters or default CMD...
2022/03/04 16:35:43 Near line 10 (last key parsed 'listen'): expected a comma or array terminator ']', but got ':' instead

and

2022/03/04 16:40:19 Near line 28 (last key parsed ''): expected a top-level item to end with a newline, comment, or EOF, but got '/' instead

OdinGitDat avatar Mar 04 '22 16:03 OdinGitDat

I will have a look at it.

satishweb avatar Mar 06 '22 05:03 satishweb

For some reason the environment variables are not applied correctly. This is my compose:

version: "3"

services:
  doh-server:
    image: satishweb/doh-server
    environment:
      - UPSTREAM_DNS_SERVER="udp:pihole:53"
      - DOH_HTTP_PREFIX="/dns-query"
      - DOH_SERVER_LISTEN=":8053"

log reports this:

|---------------------------------------------------------------------------------------------
| Starting DNS Over HTTP Service 
| ENTRYPOINT: Loading docker secrets if found...
| ENTRYPOINT: app-config was not available, running given parameters or default CMD...
2022/03/04 16:35:43 Near line 10 (last key parsed 'listen'): expected a comma or array terminator ']', but got ':' instead

and

2022/03/04 16:40:19 Near line 28 (last key parsed ''): expected a top-level item to end with a newline, comment, or EOF, but got '/' instead

Take the quotes out of your environment variables as below...

  - UPSTREAM_DNS_SERVER=udp:pihole:53
  - DOH_HTTP_PREFIX=/dns-query
  - DOH_SERVER_LISTEN=:8053

happening-primal avatar Jun 05 '22 13:06 happening-primal

I think quotes are needed. Does it happen when you use quotes?

satishweb avatar Jan 27 '23 06:01 satishweb

Marking this as resolved, please reopen if this issue still exists.

satishweb avatar Jun 13 '23 21:06 satishweb