- Set timezone (TZ) - Allow debug mode of entrypoint scripts OBS-URL: https://build.opensuse.org/request/show/885644 OBS-URL: https://build.opensuse.org/package/show/devel:kubic:containers/opensuse-nginx-image?expand=0&rev=21
14 lines
601 B
Plaintext
14 lines
601 B
Plaintext
The command to run this container is:
|
|
|
|
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
|
|
|
|
Configuration files should be stored in /srv/nginx/etc
|
|
Webpages should be stored in /srv/nginx/htdocs
|
|
|
|
It is possible to only override nginx.conf:
|
|
podman run -d --rm -v /srv/nginx/etc/nginx.conf:/etc/nginx/nginx.conf --name nginx -p 80:80/tcp -p 443:443/tcp registry.opensuse.org/opensuse/nginx
|
|
|
|
Environment Variables:
|
|
- DEBUG=[0|1] Run entrypoint script in debug mode
|
|
- TZ=<timezone> Set timezone
|