From 40fc1e86ec7fe143c94e8a51906a8528bfbc50e7 Mon Sep 17 00:00:00 2001 From: Francesco Borzì Date: Sat, 24 Apr 2021 17:55:24 +0200 Subject: docs: improve db-only docker setup (#441) --- docs/database-only-quick-setup.md | 18 ++++++------------ 1 file changed, 6 insertions(+), 12 deletions(-) (limited to 'docs/database-only-quick-setup.md') diff --git a/docs/database-only-quick-setup.md b/docs/database-only-quick-setup.md index 362f4ab..5b7a5c5 100644 --- a/docs/database-only-quick-setup.md +++ b/docs/database-only-quick-setup.md @@ -30,36 +30,30 @@ cd azerothcore-wotlk; You can easily create an instance of MySQL server containing the AC database using: ``` -docker-compose up ac-database -``` - -Alternatively, you can pass the `-d` parameter to run this command in detach mode: - -``` -docker-compose up -d ac-database +docker compose up -d ac-database ``` The default password will be `password` and the default port will be `3306`. -If you want to chance those values, run the following instead: +If you want to change those values, run the following instead: ``` -DB_EXTERNAL_PORT=9000 DB_ROOT_PASSWORD=root docker-compose up ac-database +DOCKER_DB_EXTERNAL_PORT=9000 DOCKER_DB_ROOT_PASSWORD=root docker compose up -d ac-database ``` After the db service is up and running, use the following command to import the database -`docker-compose run --rm ac-dev-server ./acore.sh db-assembler import-all` +`docker compose run --rm ac-dev-server ./acore.sh db-assembler import-all` This will import all the sql files needed to setup your database -NOTE: The same command can be used to keep the database updated with latest changes when you update the repository +**NOTE:** The same command can be used to keep the database updated with latest changes when you update the repository ### Destroy the docker instance of the AC Database You can destroy the containers created with docker-compose using: ``` -docker-compose down +docker compose down ``` -- cgit