azerothcore / acore-docker

docker-compose example to run an azerothcore platform
https://www.azerothcore.org/acore-docker/
GNU Affero General Public License v3.0
212 stars 82 forks source link

update docker-compose to reflect upstream repo #34

Closed michaeldelago closed 10 months ago

michaeldelago commented 1 year ago

This makes a few changes to docker-compose.yml in order to support azerothcore/azerothcore-wotlk

this requires 2 pull requests to be merged into the upstream repo:

main changes:

In the mean time of the 3 PRs getting merged, I recommend users look into running their server with the azerothcore/azerothcore-wotlk repo. If you can run docker compose up with this repo, you can run docker compose up --build with that one. the database should seamlessly transfer over. I'd be happy to chat about the process that goes into this (it starts with taking a backup) in the support-docker channel in the AzerothCore Discord (@mynameismeat)

zls3434 commented 1 year ago

i used this repo, but i got an error like this:

acore-docker-ac-db-import-1     | ERROR 1146 (42S02) at line 2 in file: '/azerothcore/data/sql/updates/db_world/2023_04_24_00.sql': Table 'acore_world.version' doesn't exist
acore-docker-ac-db-import-1     | 
acore-docker-ac-db-import-1     | Applying of file '/azerothcore/data/sql/updates/db_world/2023_04_24_00.sql' to database 'acore_world' failed! If you are a user, please pull the latest revision from the repository. Also make sure you have not applied any of the databases with your sql client. You cannot use auto-update system and import sql files from AzerothCore repository with your sql client. If you are a developer, please fix your sql query.
acore-docker-ac-db-import-1     | Could not update the World database, see log for details.
csmlngjd99 commented 1 year ago

hello i use this branch gave rise to the same problem as this : https://github.com/azerothcore/acore-docker/issues/37

smoove commented 1 year ago

Using this PR results in:

acore-docker-ac-db-import-1     | ERROR 1146 (42S02) at line 2 in file: '/azerothcore/data/sql/updates/db_world/2023_04_24_00.sql': Table 'acore_world.version' doesn't exist

Edit: It worked after i started the database container first (docker compose up ac-database-1 or whatever) and then only started the db import container also (docker compose up ac-db-import-1 or whatever).

After doing this once, i can now reliably run the entire thing via docker compose up

Helias commented 10 months ago

I did not encounter any issues so far, so I merged this PR