Skip to content
Snippets Groups Projects
Unverified Commit b88a05c5 authored by Satkar Dhakal's avatar Satkar Dhakal Committed by GitHub
Browse files

Update docker-compose.yml

Since March 2021, WordPress images use a customized wp-config.php that pulls the values directly from the environment variables. As a result of reading environment variables directly, the wpcli container also needs the same set of environment variables to properly evaluate wp-config.php
parent f28be63b
No related branches found
No related tags found
No related merge requests found
...@@ -25,6 +25,11 @@ services: ...@@ -25,6 +25,11 @@ services:
volumes: volumes:
- ./config/php.conf.ini:/usr/local/etc/php/conf.d/conf.ini - ./config/php.conf.ini:/usr/local/etc/php/conf.d/conf.ini
- ./wp-app:/var/www/html - ./wp-app:/var/www/html
environment:
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: "${DB_NAME}"
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: "${DB_ROOT_PASSWORD}"
depends_on: depends_on:
- db - db
- wp - wp
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment