
- #Bitnami mean stack apache config how to#
- #Bitnami mean stack apache config manual#
- #Bitnami mean stack apache config mods#
- #Bitnami mean stack apache config code#
#Bitnami mean stack apache config how to#
Why tell us how to use env variables if they are not accessible due to the way the image was built? But honestly I am confused that the image was built without allowing environment variables. It is great that you guys included infor on how to pass in an environment variable.
#Bitnami mean stack apache config manual#
If you want to add a new environment variable:įor docker-compose add the variable name and value under the application section:įor manual execution add a -e option with each variable and value: When you start the Apache image, you can adjust the configuration of the instance by passing one or more environment variables either on the docker-compose file or on the docker run command line. In doing some more reading of the article you attached, I see this: Can you think of any way I could debug this problem? I am trying to see it from my program using:īut instead of getting 2, I get null. TESTHOST is the sample env that I have passed in. PATH=/opt/bitnami/php/bin:/opt/bitnami/php/sbin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/binīITNAMI_IMAGE_VERSION=7.2.32-debian-10-r1 Here is what I see from within the docker exec 98e env

If I was, I probably wouldn't be using bitnami for it.
#Bitnami mean stack apache config code#
Regardless I need to understand why my code can't see the env variable that I have passed in. Could it be that the container is using user 1001 and my code is not? Or does that ONLY affect files? But for some reason I cannot seem to "see them" from my code running in the bitnami/bitnami-docker-apache container. As I said, i can see that they are successfully being passed into the environment. I have stepped back from trying to get CredentialProvider to work and am trying to just pass in my credentials via an. env file to pass in environment variables.
#Bitnami mean stack apache config mods#
I have already made some custom mods of the. htaccess (either on the laptop or on the server) and this is where I will create the ENV variable. If this is set to LAPTOP, then my code needs to run a slightly different setting for FusionAuth, that I use to enable users to answer surveys. I also need to create an ENV variable called machine. I also am not sure, since I don't see /home/binami/.aws, if I have correctly set up bitnami under docker. The issue is that I don's see a /home/bitnami dir in the container.

But the Bitnami docs say to create it in home/bitnami/.aws/. This app seems to be creating it in /home/.aws/. I have run Configure Credentials to create the defaultProvider.


To do this I need to setup a CredentialProvider and the AWS docs say to do this at /home/.aws/configuration. I am trying to setup to use AWS Secrets Manager. Thus it is also running the same bitnami/Apache and bitnami/php-fpm (I think). This is my staging server and I will use this for testing. My application uses RDS mySQL and S3 and AWS dynamaDB. I use phpStorm and have a Github setup where I can pushe my changes to Github and these are automatically pushed to my Ec2 instance. This is my entire development environment. In it I run bitnami/Apache and bitnami/php-fpm. The laptop is running a docker container. My environment consists of development laptop and a EC2 AWS server.
