Sign inSign up

lordius/alpine-nginx

By lordius

•Updated over 8 years ago

NGINX image based on Alpine Linux.

Image
1

2.4K

lordius/alpine-nginx repository overview

⁠NGINX image for Docker Compose LAMP stack

NGINX image based on Alpine Linux.

⁠Include own configs

You could mount to /temp_configs_dir with your volume and use own configs. Variable USE_ONLY_CONFIGS - disable using the custom variables in the list below.

⁠How to run

Run image the on port 80, be aware first you need start proxy(in docker-compose-lamp⁠ APACHE2-MPM container).

docker run -v /hostDir:/var/www/localhost/htdocs -d -p 8003:80 -e LISTEN_PORT="80" -e PROXY_PASS="http://apache2_mpm:8080" --name nginx --link apache2_mpm lordius/alpine-nginx

⁠Environment Variables

VariableDefault ValueDescription
KEEPALIVE_TIMEOUTkeepalive_timeout 3000Line keepalive_timeout in the /etc/nginx/nginx.conf
FASTCGI_READ_TIMEOUTfastcgi_read_timeout 300Line fastcgi_read_timeout in the /etc/nginx/nginx.conf
LISTEN_PORTlisten 80Line listen in the /etc/nginx/nginx.conf
LISTEN_SSL_PORTlisten 443 sslLine listen in the /etc/nginx/nginx.conf
GENERATE_SSL_KEY0Generates SSL keys /etc/nginx/ssl/nginx-selfsigned.key, /etc/nginx/ssl/nginx-selfsigned.crt
SERVER_ROOTroot /var/www/localhost/htdocsLine root in the /etc/nginx/nginx.conf
SERVER_NAMEserver_name localhostLine server_name in the /etc/nginx/nginx.conf
CLIENT_MAX_BODY_SIZEclient_max_body_size 32mLine client_max_body_size in the /etc/nginx/nginx.conf
PROXY_CONNECT_TIMEOUTproxy_connect_timeout 600Line proxy_connect_timeout in the /etc/nginx/nginx.conf
PROXY_SEND_TIMEOUTproxy_send_timeout 600Line proxy_send_timeout in the /etc/nginx/nginx.conf
PROXY_READ_TIMEOUTproxy_read_timeout 600Line proxy_read_timeout in the /etc/nginx/nginx.conf
SEND_TIMEOUTsend_timeout 600Line send_timeout in the /etc/nginx/nginx.conf
FASTCGI_BUFFERSfastcgi_buffers 16 16kLine fastcgi_buffers in the /etc/nginx/nginx.conf
FASTCGI_BUFFER_SIZEfastcgi_buffer_size 32kLine fastcgi_buffer_size in the /etc/nginx/nginx.conf
PROXY_BUFFER_SIZEproxy_buffer_size 128kLine proxy_buffer_size in the /etc/nginx/nginx.conf
PROXY_BUFFERSproxy_buffers 4 256kLine proxy_buffers in the /etc/nginx/nginx.conf
PROXY_BUSY_BUFFER_SIZEproxy_busy_buffers_size 256kLine proxy_busy_buffers_size in the /etc/nginx/nginx.conf
PROXY_PASSproxy_pass http://apache2_mpm:8080Lines proxy_pass in the /etc/nginx/nginx.conf

⁠Full LAMP stack

See Docker Compose LAMP⁠.

Tag summary

Content type

Image

Digest

Size

12.7 MB

Last updated

over 8 years ago

docker pull lordius/alpine-nginx