The wikis are now using the new authentication system.
If you did not migrate your account yet, visit https://idp-portal-info.suse.com/

Portal:Container/Image/nginx

Jump to: navigation, search

openSUSE Nginx Container Image

Description

This container image contains the latest nginx web server from openSUSE Tumbleweed.

Location

  • registry.opensuse.org/opensuse/nginx

Configuration

This container image requires a local data directory, by default /srv/nginx. During the first start, if no configuration is provided, the container will create a default configuration:

  • /srv/nginx/etc contains the configuration normally can be found in /etc/nginx
  • /srv/nginx/htdocs contains the files which normally can be found below /srv/www/htdocs

Run

 # podman run -d --rm -v /srv/nginx/etc:/etc/nginx -v /srv/nginx/htdocs:/srv/www/htdocs --name nginx -p 80:80/tcp -p 443:443/tcp registry.opensuse.org/opensuse/nginx

It's possible to only override nginx.conf

 # podman run -d --rm -v /srv/nginx/etc/nginx.conf:/etc/nginx/nginx.conf:ro --name nginx -p 80:80/tcp -p 443:443/tcp registry.opensuse.org/opensuse/nginx

Reload Configuration

XXX

Systemd support

The package containers-systemd contains a service file and sysconfig file to configure and automatically start the nginx container with systemd.

 # systemctl start container-nginx