"how to run xdebug on docker compose" Code Answer's
You're definitely familiar with the best coding language Whatever that developers use to develop their projects and they get all their queries like "how to run xdebug on docker compose" answered properly. Developers are finding an appropriate answer about how to run xdebug on docker compose related to the Whatever coding language. By visiting this online portal developers get answers concerning Whatever codes question like how to run xdebug on docker compose. Enter your desired code related query in the search bar and get every piece of information about Whatever code related question on how to run xdebug on docker compose.
how to run xdebug on docker compose
version: '3.8'
services:
wordpress:
container_name: wordpress-wpd
restart: always
image: wpdiaries/wordpress-xdebug:5.7.1-php8.0-apache
ports:
- "80:80"
environment:
VIRTUAL_HOST: mydomain.com, www.mydomain.com
WORDPRESS_DB_HOST: db
WORDPRESS_DB_NAME: mydbname
WORDPRESS_DB_USER: mydbuser
WORDPRESS_DB_PASSWORD: mydbpassword
# Set the XDEBUG_CONFIG as described here: https://xdebug.org/docs/remote
XDEBUG_CONFIG: remote_host=192.168.1.2 # change 192.168.1.2 to the IP of your host machine
depends_on:
- db
volumes:
- /opt/projects/wpd/www:/var/www/html
networks:
- backend-wpd
- frontend-wpd
db:
container_name: mysql-wpd
image: mysql:8.0.20
command: --default-authentication-plugin=mysql_native_password
restart: always
environment:
MYSQL_ROOT_PASSWORD: mydbrootpassword
#MYSQL_RANDOM_ROOT_PASSWORD: '1' # You can use this instead of the option right above if you do not want to be able to login to MySQL under root
MYSQL_DATABASE: mydbname
MYSQL_USER: mydbuser
MYSQL_PASSWORD: mydbpassword
ports:
- "3306:3306" # I prefer to keep the ports available for external connections in the development environment to be able to work with the database
# from programs like e.g. HeidiSQL on Windows or DBeaver on Mac.
volumes:
- /opt/projects/wpd/mysql:/var/lib/mysql
networks:
- backend-wpd
networks:
frontend-wpd:
backend-wpd:
Source: www.wpdiaries.com
All those coders who are working on the Whatever based application and are stuck on how to run xdebug on docker compose can get a collection of related answers to their query. Programmers need to enter their query on how to run xdebug on docker compose related to Whatever code and they'll get their ambiguities clear immediately. On our webpage, there are tutorials about how to run xdebug on docker compose for the programmers working on Whatever code while coding their module. Coders are also allowed to rectify already present answers of how to run xdebug on docker compose while working on the Whatever language code. Developers can add up suggestions if they deem fit any other answer relating to "how to run xdebug on docker compose". Visit this developer's friendly online web community, CodeProZone, and get your queries like how to run xdebug on docker compose resolved professionally and stay updated to the latest Whatever updates.