Category : wordpress

I am trying to migrate my wordpress to Docker thanks to this tutorial: https://joshmobley.net/writing/2017/04/09/easy-wordpress-migration-with-docker/ Here is my docker-compose.yml: # docker-compose.yaml version: ‘2’ # version of docker-compose to use services: db: image: mysql:5.6 volumes: – ./data:/docker-entrypoint-initdb.d environment: MYSQL_RANDOM_ROOT_PASSWORD: 1 MYSQL_DATABASE: DB_NAME MYSQL_USER: DB_USER MYSQL_PASSWORD: DB_PASSWORD wordpress: depends_on: – db image: wordpress:latest ports: – "8000:80" restart: always ..

Read more

I am using this repo https://github.com/nezhar/wordpress-docker-compose for the docker-compose setup. Here is the docker-compose.yml : version: ‘3’ services: wp: image: wordpress:latest # https://hub.docker.com/_/wordpress/ ports: – ${IP}:80:80 # change ip if required volumes: – ./config/php.conf.ini:/usr/local/etc/php/conf.d/conf.ini – ./wp-app:/var/www/html # Full wordpress project #- ./plugin-name/trunk/:/var/www/html/wp-content/plugins/plugin-name # Plugin development #- ./theme-name/trunk/:/var/www/html/wp-content/themes/theme-name # Theme development environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_NAME: "${DB_NAME}" ..

Read more

I am trying to install wordpress using Docker Desktop and WSL2. I was able to compose an image creating the following docker-compose.yml file and then running docker-compose up version: ‘3.1’ services: wordpress: image: wordpress restart: always ports: – 8080:80 environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: exampleuser WORDPRESS_DB_PASSWORD: examplepass WORDPRESS_DB_NAME: exampledb volumes: – wordpress:/var/www/html db: image: mysql:5.7 restart: ..

Read more

I want to configure VS Code Xdebug plugin to work with Xdebug inside a WordPress Docker container. I have an issue with the ports. If I specify on the WP-with-Xdebug container in the "ports" section of the docker-compose.yml file: – "9009:9000" And in the environment variable XDEBUG_CONFIG on the same container: XDEBUG_CONFIG: remote_host=172.17.0.1 mode=debug start_with_request=true ..

Read more