Zuluru / Zuluru3

Open source web-based sports league management application
Other
42 stars 22 forks source link

starting docker-compose fails #46

Open adamheath opened 8 months ago

adamheath commented 8 months ago

When I try and start Zuluru 3 from the docker-compose file I get the following error:

Installing dependencies from lock file (including require-dev) Verifying lock file contents can be installed on current platform. Your lock file does not contain a compatible set of packages. Please run composer update.

Problem 1

Any ideas how to fix this?

Zuluru commented 8 months ago

Seems pretty clear that you need PHP 7.4, and you're running 7.3.

adamheath commented 8 months ago

The issue was the docker pull command wasnt run. However I found some issues still with the docker-compose file. I had to change the database container to this:

db: image: mysql command: --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --default-authentication-plugin=mysql_native_password

mmerry commented 6 months ago

The changes above helped, but with mysql8.4, it is a bit different. This worked for me on my Mac M1. First, change the database container to this:

services:
  db:
    image: mysql
    command: mysqld --character-set-server=utf8mb4 --collation-server=utf8mb4_unicode_ci --mysql-native-password=ON

Then, you will need to log into the docker container and set the zuluru user to use native passwords

docker exec -it <your-container-id> bash

Once in the bash terminal, log into mysql. Your default root password is 'rootpassword'

mysql -u root -p

Then, set the zuluru user to use native passwords:

ALTER USER 'zuluru' IDENTIFIED with mysql_native_password by 'userpassword';

That should get you a working docker set of images that gets through install. Unfortunately I get an error on trying to log in as admin