fix(ci): use docker compose up --force-recreate so new volume mounts apply
docker restart does not re-read docker-compose.yml, so new bind mounts added to the compose file are ignored until containers are recreated. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -39,8 +39,9 @@ jobs:
|
||||
git checkout -f origin/main -- addon/ lobby-addon/ hub-return-addon/ easter-egg-addon/ docker-compose.yml
|
||||
fi
|
||||
|
||||
# Restart all 4 Minecraft containers to pick up changes
|
||||
docker restart mc-lobby mc-jamie mc-lyla mc-mya
|
||||
# Recreate containers so any new docker-compose volume mounts are applied,
|
||||
# then restart remaining containers to pick up script changes
|
||||
docker compose up -d --force-recreate
|
||||
|
||||
# Wait and verify
|
||||
sleep 10
|
||||
|
||||
Reference in New Issue
Block a user