When I define a volume for my theme then I cant mount the wp-config.php file. Is it possible to change the wp-config.php on docker-compose up command?
services:
db:
image: mysql:5.7
volumes:
- db_data:/var/lib/mysql
restart: always
environment:
MYSQL_ROOT_PASSWORD: root
MYSQL_DATABASE: wordpress
MYSQL_USER: root
MYSQL_PASSWORD: root
wordpress:
depends_on:
- db
image: wordpress:latest
ports:
- "8000:80"
restart: always
environment:
WORDPRESS_DB_HOST: db:3306
WORDPRESS_DB_USER: root
WORDPRESS_DB_PASSWORD: root
volumes:
- ./test-theme:/var/www/html/wp-content/themes/test-theme
- ./test:/var/www/html/test
volumes:
db_data: {}```
When I define a volume for my theme then I cant mount the wp-config.php file. Is it possible to change the wp-config.php on docker-compose up command?