Zuluru3 icon indicating copy to clipboard operation
Zuluru3 copied to clipboard

starting docker-compose fails

Open adamheath opened this issue 1 year ago • 3 comments

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 - psr/container is locked to version 2.0.2 and an update of this package was not requested. - psr/container 2.0.2 requires php >=7.4.0 -> your php version (7.3.33) does not satisfy that requirement. Problem 2 - psr/container 2.0.2 requires php >=7.4.0 -> your php version (7.3.33) does not satisfy that requirement. - fakerphp/faker v1.17.0 requires psr/container ^1.0 || ^2.0 -> satisfiable by psr/container[2.0.2]. - fakerphp/faker is locked to version v1.17.0 and an update of this package was not requested.

Any ideas how to fix this?

adamheath avatar Feb 16 '24 17:02 adamheath

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

Zuluru avatar Feb 16 '24 17:02 Zuluru

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

adamheath avatar Feb 17 '24 10:02 adamheath

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

mmerry avatar May 06 '24 05:05 mmerry