sysPass / plugin-Authenticator

2FA authentication plugin for sysPass based on TOTP algorithm (RFC 6238)
https://syspass.org
GNU General Public License v3.0
18 stars 18 forks source link

docker with syspass 3.2.11 fails due to php version. #45

Open takigama opened 2 years ago

takigama commented 2 years ago

Hi, I was trying this out to see how well it would work, running the latest syspass available on docker hub (3.2.11), but it fails due to php being too old:

[Wed Sep 28 04:18:26.470977 2022] [php7:error] [pid 905] [client ] PHP Fatal error: Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". You are running 7.3.31-1~deb10u1. in /var/www/html/sysPass/vendor/composer/platform_check.php on line 24

Being the type of person I am, I disabled the check and everything works fine, but out of the box it doesn't seem to work currently.

krystianroza commented 2 years ago

True... Composer detected issues in your platform: Your Composer dependencies require a PHP version ">= 7.4.0". I mus use image: syspass/syspass:3.2.11-php7.4

docker-compose.yml is wrong in this case...

(...)
app:
    container_name: syspass-app
    image: syspass/syspass:latest
(...)
environment:
      - USE_SSL=yes
      - COMPOSER_EXTENSIONS=syspass/plugin-authenticator:^v2.2
(...)