Nginx images based on the official Nginx Alpine images from Docker Hub.
html, php, wordpress)Nginx server root can be set via NGINX_SERVER_ROOT environment variable (defaults to /var/www/docroot).
These images are set up to work with a FastCGI server and will not start without one.
The FastCGI endpoint can be set via NGINX_FCGI_HOST_PORT environment variable (defaults to php-fpm:9000).
Use NGINX_BASIC_AUTH_USER and NGINX_BASIC_AUTH_PASS environment variables to set username and password.
Example with Docker Compose
...
environment:
- NGINX_BASIC_AUTH_USER=user
- NGINX_BASIC_AUTH_PASS=password
...
Configuration presets can be set using the NGINX_VHOST_PRESET environment variable (defaults to html).
Available options:
NGINX_VHOST_PRESET=html - basic HTML siteNGINX_VHOST_PRESET=php - generic PHP applicationNGINX_VHOST_PRESET=wordpress - WordPressConfiguration overrides can be added to a Docksal project codebase.
Use .capsule/etc/nginx/vhost-overrides.conf to override the default virtual host configuration, e.g.:
index index-debug.html;
Use .capsule/etc/nginx/vhosts.conf to define additional virtual hosts, e.g.:
server {
listen 80;
server_name test.capsule;
root /var/www/docroot;
index index-debug.html;
}
Content type
Image
Digest
sha256:a1f41644a…
Size
31 MB
Last updated
over 1 year ago
docker pull aeonis/capsule-nginx