#I am trying to use directus docker image and passing custom env's while building the image

4 messages · Page 1 of 1 (latest)

topaz lichen
#

Dockerfile:

FROM directus/directus:latest
ENV PUBLIC_URL = "http://0.0.0.0:8055"
ENV DB_CLIENT = 'pg'
ENV DB_HOST ="localhost"
ENV DB_PORT = "5432"
ENV DB_DATABASE = "directus"
ENV DB_USER = "postgres"
ENV DB_PASSWORD ="postgres"
ENV DB_SSL = "false"
ENV KEY ="key"
ENV SECRET ="secret"
CMD ["yarn", "directus", "start"]

Facing some issue while connecting to database . It throws below error

Error:
Error: knex: Unknown configuration option 'client' value = pg. Note that it is case-sensitive, check documentation for supported values.

Can some one help me with this issue?

grave sleet
#

Change 'pg' to "pg"

topaz lichen
#

tried but same error

topaz lichen
#

it is working i removed spaces
DB_CLIENT = 'pg' -> ENV DB_CLIENT='pg'