Contains Nginx Web Server with Certbot.
533
Equipped with custom instructions overriding default Ubuntu file limits and maximum available ulimit and opened ports. Equipped with Nginx and Certbot.
Deploy containers using this image and by providing a list of environment variables and the main command to execute. You can also provide a file that contains your environment variables instead of specifying them one by one.
> docker run -d --env-file ./myenv.txt -p 80:80 -p 443:443 mikehajj/webserver bash -c '/opt/figbots/deployer/run.sh'
#certbot
export DEVOPS_EMAIL=%your_email_address%
#upstream
export SOAJS_NX_CONTROLLER_NB=%number_of_soajs_gateway_services_to_upstream_api_calls_to%
export SOAJS_NX_CONTROLLER_PORT=%soajs_gateway_port_value%
# if SOAJS_NX_CONTROLLER_NB=2, then the below would look like
export SOAJS_NX_CONTROLLER_IP_1=%soajs_gateway_1_ip_address%
export SOAJS_NX_CONTROLLER_IP_2=%soajs_gateway_2_ip_address%
#api & site common
export SOAJS_NX_DOMAIN=%your_domain_name%
#api
export SOAJS_NX_APIS_NB=%number_of_api_hosts_nginx_should_create%
# if SOAJS_NX_APIS_NB=2, then the below would look like
export SOAJS_NX_API_DOMAIN_1=%api_prefix_1%
export SOAJS_NX_API_DOMAIN_2=%api_prefix_2%
#site
export SOAJS_NX_SITES_NB=%number_of_static_hosts_nginx_should_create%
# if SOAJS_NX_SITES_NB=2, then the below would look like
export SOAJS_NX_SITE_DOMAIN_1=%site_prefix_1%
export SOAJS_NX_SITE_DIR_1=%site_directory_prefix_1%
export SOAJS_NX_SITE_DOMAIN_2=%site_prefix_2%
export SOAJS_NX_SITE_DIR_2=%site_directory_prefix_2%
#certbot
export [email protected]
#upstream
export SOAJS_NX_CONTROLLER_NB=2
export SOAJS_NX_CONTROLLER_PORT=4000
export SOAJS_NX_CONTROLLER_IP_1=192.168.0.10
export SOAJS_NX_CONTROLLER_IP_2=192.168.0.11
#api & site common
export SOAJS_NX_DOMAIN=figbots.io
#api
export SOAJS_NX_APIS_NB=2
export SOAJS_NX_API_DOMAIN_1=cloud-api
export SOAJS_NX_API_DOMAIN_2=stg-cloud-api
#site
export SOAJS_NX_SITES_NB=2
export SOAJS_NX_SITE_DOMAIN_1=cloud
export SOAJS_NX_SITE_DIR_1=/opt/figbots/prod/ui
export SOAJS_NX_SITE_DOMAIN_2=stg-cloud
export SOAJS_NX_SITE_DIR_2=/opt/figbots/stg/ui
Content type
Image
Digest
Size
214.2 MB
Last updated
over 7 years ago
docker pull mikehajj/webserver