Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PHP does not read environment variables #67

Open
akamalmra opened this issue Nov 2, 2023 · 2 comments
Open

PHP does not read environment variables #67

akamalmra opened this issue Nov 2, 2023 · 2 comments
Labels

Comments

@akamalmra
Copy link

PHP does not read environment variables

using docker-compose.yml file:

version: '3.7'

services:

  nginx-php-fpm-app:

    image: tiredofit/nginx-php-fpm:8.2-alpine

    volumes:
      - ./html/:/www/html
      - ./logs/:/www/logs
      
    environment:
      - TIMEZONE = Asia/Bahrain
      - PHP_MEMORY_LIMIT = 256M

    ports:
      - 80:80

    restart: always

when viewing PHP info both configuration are still showing the default values:

  • Default timezone: Etc/GMT
  • memory_limit: 128M

Best Regards.

@akamalmra akamalmra added the bug label Nov 2, 2023
@HiiZun
Copy link

HiiZun commented Dec 3, 2023

Hello i'm getting same issue anything new?

@tiredofit
Copy link
Owner

I haven't included the ability to pass environment variables from system into PHP engine- you can see what is being passed here:

env[PATH] = /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin

It would need to be a feature added if it was to be possible. I avoid it personally.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants