Web nginx:alpine

nginx

Nginx web server with custom config and static files

Install

cardinal blueprint install nginx
cardinal blueprint install nginx
# or override resources / env at install time:
cardinal blueprint install nginx --memory 1g --cpus 2 -e KEY=value -y

Manual equivalent

cardinal run
cardinal run -d \
  --restart always \
  -n nginx \
  -p "8080:80/tcp,4433:443/tcp" \
  -v "nginx_html:/usr/share/nginx/html,nginx_conf:/etc/nginx/conf.d" \
  --memory 128m \
  --cpus 0.5 \
  nginx:alpine

Configuration

Imagenginx:alpine
Restartalways
Ports8080:80/tcp,4433:443/tcp
Volumesnginx_html:/usr/share/nginx/html,nginx_conf:/etc/nginx/conf.d
Memory128m
CPUs0.5

More web

Related stacks

nginx-node-reverse-proxy

Node.js + Nginx — App behind a reverse proxy.

lemp-stack

Nginx + PHP 8.2 + MariaDB — Classic LEMP web stack.