Skip to content

Word press is not using default environment variables in docker container #631

Closed

Description

@deekshith-elear

Hi,
I'm using WORDPRESS_DB_HOST to provide my database host name as a environmental variable to my wordpress docker container. In My oldversion of docker image which is an year old it is able to work properly. now I want to migrate to 5.8 and getting database connection error. If I hardcode data of host it is working. else it is not fetching data.

Can anyone help me to fix this issue?

Activity

  1. added
    questionUsability question, not directly related to an error with the image
    on Aug 24, 2021
  2. wglambert commented on Aug 24, 2021

    @wglambert

    What do the docker logs show for the error? And what's your docker-compose.yml look like

  3. locked and limited conversation to collaborators on Aug 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionUsability question, not directly related to an error with the image

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions