phusion/passenger-docker: Docker base images for Ruby, Python, Node.js and Meteor web apps - 0 views
-
Ubuntu 20.04 LTS as base system
- ...23 more annotations...
-
A build system, git, and development headers for many popular libraries, so that the most popular Ruby, Python and Node.js native extensions can be compiled without problems.
-
The image has an app user with UID 9999 and home directory /home/app. Your application is supposed to run as this user.
-
Passenger works like a mod_ruby, mod_nodejs, etc. It changes Nginx into an application server and runs your app from Nginx.
-
any environment variables you set with docker run -e, Docker linking and /etc/container_environment, won't reach Nginx.
-
To preserve these variables, place an Nginx config file ending with *.conf in the directory /etc/nginx/main.d, in which you tell Nginx to preserve these variables.
-
By default, Phusion Passenger sets all of the following environment variables to the value production
-
Setting these environment variables yourself (e.g. using docker run -e RAILS_ENV=...) will not have any effect, because Phusion Passenger overrides all of these environment variables.
-
passenger-docker autogenerates an Nginx configuration file (/etc/nginx/conf.d/00_app_env.conf) during container boot.
-
The configuration file is in /etc/redis/redis.conf. Modify it as you see fit, but make sure daemonize no is set.