It seems that i forgot to share the wordpress filebase with the wpcli container. In the wordpress service under volumes the "wordpress" volume is not liked, you can add - wordpress:/var/www/html/ and restart docker with "docker-compose down" then "docker-compose up": wordpress: image: wordpress:6.1 env_file: - .env environment: WORDPRESS_DB_HOST: ${WORDPRESS_DB_HOST} WORDPRESS_DB_USER: ${WORDPRESS_DB_USER} WORDPRESS_DB_PASSWORD: ${WORDPRESS_DB_PASSWORD} WORDPRESS_DB_NAME: ${WORDPRESS_DB_NAME} WORDPRESS_TABLE_PREFIX: ${WORDPRESS_TABLE_PREFIX} WORDPRESS_DEBUG: ${WORDPRESS_DEBUG} WORDPRESS_CONFIG_EXTRA: ${WORDPRESS_CONFIG_EXTRA} ports: - '80:80' volumes: - ./src/plugins:/var/www/html/wp-content/plugins - ./src/themes:/var/www/html/wp-content/themes - wordpress:/var/www/html/ it should be like this :) Also when i edited the video i forgot to include the part where we need to add the volume wordpress on the last line it can be seen from at 07:13 LAST LINE OF CODE :( (i apologize for this)
Пікірлер: 8