-
-
Save IJMacD/683b0f6b4413b779d501fa53269e78dd to your computer and use it in GitHub Desktop.
Minimal test cases for qtranslate-xt #1387
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
services: | |
db: | |
image: mysql:5.7 | |
restart: always | |
volumes: | |
- db_data:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: somewordpress | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: wordpress | |
wordpress: | |
depends_on: | |
- db | |
image: wordpress:latest | |
ports: | |
- 8000:80 | |
restart: always | |
environment: | |
WORDPRESS_DB_HOST: db:3306 | |
WORDPRESS_DB_NAME: wordpress | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: wordpress | |
WORDPRESS_TABLE_PREFIX: "wp_" | |
WORDPRESS_DEBUG: 1 | |
# vstm: add shared volume | |
volumes: | |
- wp_data:/var/www/html | |
wordpress-cli: | |
depends_on: | |
- db | |
- wordpress | |
image: wordpress:cli | |
# vstm: This is required to run wordpress-cli with the same | |
# user-id as wordpress. This way there are no permission problems | |
# when running the cli | |
user: xfs | |
environment: | |
WORDPRESS_DB_HOST: db:3306 | |
WORDPRESS_DB_NAME: wordpress | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: wordpress | |
# vstm: The sleep 10 is required so that the command is run after | |
# mysql is initialized. Depending on your machine this might take | |
# longer or it can go faster. | |
command: > | |
/bin/sh -c ' | |
sleep 10; | |
wp core install --path="/var/www/html" --url="http://localhost:8000" --title="Local Wordpress By Docker" --admin_user=admin --admin_password=secret --admin_email=foo@bar.com; | |
wp plugin install "https://github.com/qtranslate/qtranslate-xt/archive/refs/heads/master.zip" --activate; | |
wp plugin activate hello | |
' | |
# vstm: add shared volume | |
volumes: | |
- wp_data:/var/www/html | |
volumes: | |
db_data: | |
# vstm: add shared volume | |
wp_data: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
version: "3.3" | |
services: | |
db: | |
image: mysql:5.7 | |
restart: always | |
volumes: | |
- db_data:/var/lib/mysql | |
environment: | |
MYSQL_ROOT_PASSWORD: somewordpress | |
MYSQL_DATABASE: wordpress | |
MYSQL_USER: wordpress | |
MYSQL_PASSWORD: wordpress | |
wordpress: | |
depends_on: | |
- db | |
image: wordpress:latest | |
ports: | |
- 8000:80 | |
restart: always | |
environment: | |
WORDPRESS_DB_HOST: db:3306 | |
WORDPRESS_DB_NAME: wordpress | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: wordpress | |
WORDPRESS_TABLE_PREFIX: "wp_" | |
WORDPRESS_DEBUG: 1 | |
# vstm: add shared volume | |
volumes: | |
- wp_data:/var/www/html | |
wordpress-cli: | |
depends_on: | |
- db | |
- wordpress | |
image: wordpress:cli | |
# vstm: This is required to run wordpress-cli with the same | |
# user-id as wordpress. This way there are no permission problems | |
# when running the cli | |
user: xfs | |
environment: | |
WORDPRESS_DB_HOST: db:3306 | |
WORDPRESS_DB_NAME: wordpress | |
WORDPRESS_DB_USER: wordpress | |
WORDPRESS_DB_PASSWORD: wordpress | |
# vstm: The sleep 10 is required so that the command is run after | |
# mysql is initialized. Depending on your machine this might take | |
# longer or it can go faster. | |
command: > | |
/bin/sh -c ' | |
sleep 10; | |
wp core install --path="/var/www/html" --url="http://localhost:8000" --title="Local Wordpress By Docker" --admin_user=admin --admin_password=secret --admin_email=foo@bar.com; | |
wp plugin install "https://github.com/ijmacd/qtranslate-xt/archive/refs/heads/master.zip" --activate; | |
wp plugin activate hello | |
' | |
# vstm: add shared volume | |
volumes: | |
- wp_data:/var/www/html | |
volumes: | |
db_data: | |
# vstm: add shared volume | |
wp_data: |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment