Ecommerce Shopify WordPress Discussion

docker wordpress:latest and wordpress:cli auto install wordpress how to

I want to setup a wordpress container,install wordpress with default servername, username and password. Later I want to use wordpress:cli to change the default language, add some plugins, etc. The goal is to test a Wordpress plugin in different scenarioes. But I'm stuck with the basic setup: version: "3.8" services: # WordPress Service wordpress: image: wordpress:latest ports: - "8088:80" environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: wordpress WORDPRESS_DB_NAME: wordpress volumes: - wordpress_data:/var/www/html depends_on: db: condition: service_healthy # MySQL Service db: image: mysql:8.0 volumes: - db_data:/var/lib/mysql environment: MYSQL_ROOT_PASSWORD: somewordpress MYSQL_DATABASE: wordpress MYSQL_USER: wordpress MYSQL_PASSWORD: wordpress healthcheck: test: ["CMD", "mysqladmin", "ping", "-h", "localhost"] interval: 10s timeout: 5s retries: 5 #WP-CLI Service wp-cli: image: wordpress:cli environment: WORDPRESS_DB_HOST: db WORDPRESS_DB_USER: wordpress WORDPRESS_DB_PASSWORD: wordpress WORDPRESS_DB_NAME: wordpress volumes: - wordpress_data:/var/www/html depends_on: - wordpress entrypoint: wp command: > sh -c ' wp core install --url="http://localhost:8088" --title="Example Site" --admin_user="admin" --admin_password="admin_password" --admin_email="info@example.com" --skip-email; ' volumes: wordpress_data: db_data: I expected to end up with a finished installed wp. I'm getting this error: wp-cli-1 | Error: The site you have requested is not installed. wp-cli-1 | Run wp core install to create database tables. wp-cli-1 exited with code 1 my http://localhost:8000/wp-admin/install.php is up and running and I can successfully install everything manually. I think this might have to do with the wp-config.php /** Database username */ define( 'DB_USER', getenv_docker('WORDPRESS_DB_USER', 'example username') ); /** Database password */ define( 'DB_PASSWORD', getenv_docker('WORDPRESS_DB_PASSWORD', 'example password') ); but I don't understand how to fix it
TurboCommerce make the better internet purchasing globaly

Turbo Multi-language Translator

Make the better internet purchasing globaly

Turbosify SEO Speed Booster

5.0 (7) Free plan available
Get better conversions by improving store loading speed Installed

Turbo Multi-language Chat - AI Customer service in one hand

TurboCommerce make the better internet purchasing globaly
Our products

The help you need, when you need it

App by Turbo Engine

3 apps • 5.0 average rating

Turbosify Speed Booster

5.0 (7)
Get better conversions by optimizing shopify store Google page speed Installed

Turbosify Translator for Wordpress Woocommerce

5.0 (74) Free Wordpress Woocommerce Plugin
Translate your wordpress website to multiple language within 1 click, no configuration needed, no No technical required

Grow your business here

Whether you want to sell products down the street or around the world, we have all the tools you need.