You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 30, 2023. It is now read-only.
Hi,
Thank you for setting this up.
It looks promising the only idea of importing the PROD db dump, renaming it and importing it to docker.
Unfortunately it won't import my backup.sql.gz file located into the mysqldumps folder.
This is my docker-compose.yaml content:
db:
image: mysql:5.7
volumes:
- ./database:/var/lib/mysql
- ./mysqldumps/backup.sql.gz:/docker-entrypoint-initdb.d/backup.sql.gz
- ./init/migrate.sh:/docker-entrypoint-initdb.d/migrate.sh
restart: always
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: default
MYSQL_DATABASE: wordpress
MYSQL_USER: $db_user
MYSQL_PASSWORD: $db_password
WORDPRESS_TABLE_PREFIX: $db_table_prefix
PRODUCTION_URL: $production_url
WP_ALLOW_MULTISITE: true
Within my .env I've only updated the production_url variable, everything else is the default .env located on this repo:
(Required) The table prefix of the WordPress database used in production site
E.g wp_
db_table_prefix=wp_
(Optional) You can disable certain plugins that are not needed for development, e.g. security or SEO plugins.
Comma separated string (no spaces), leave blank if no plugins to disable.
Hi,
Thank you for setting this up.
It looks promising the only idea of importing the PROD db dump, renaming it and importing it to docker.
Unfortunately it won't import my backup.sql.gz file located into the mysqldumps folder.
This is my docker-compose.yaml content:
db:
image: mysql:5.7
volumes:
- ./database:/var/lib/mysql
- ./mysqldumps/backup.sql.gz:/docker-entrypoint-initdb.d/backup.sql.gz
- ./init/migrate.sh:/docker-entrypoint-initdb.d/migrate.sh
restart: always
ports:
- '3306:3306'
environment:
MYSQL_ROOT_PASSWORD: default
MYSQL_DATABASE: wordpress
MYSQL_USER: $db_user
MYSQL_PASSWORD: $db_password
WORDPRESS_TABLE_PREFIX: $db_table_prefix
PRODUCTION_URL: $production_url
WP_ALLOW_MULTISITE: true
Within my .env I've only updated the production_url variable, everything else is the default .env located on this repo:
(Required) The table prefix of the WordPress database used in production site
E.g wp_
db_table_prefix=wp_
(Optional) You can disable certain plugins that are not needed for development, e.g. security or SEO plugins.
Comma separated string (no spaces), leave blank if no plugins to disable.
E.g. plugin-folder-name-1,plugin-folder-name-2
wp_plugins_to_disable=
####################################################
Defaults - can be left as-is for basic usage
####################################################
db_host=db:3306
db_user=wordpress
db_password=password
db_name=wordpress
db_root_password=password
wp_debug_mode=false