https://github.com/ivandotv/docker-nginx-dockerize
NGINX image with dockerize templating utility.
https://github.com/ivandotv/docker-nginx-dockerize
docker nginx
Last synced: about 2 months ago
JSON representation
NGINX image with dockerize templating utility.
- Host: GitHub
- URL: https://github.com/ivandotv/docker-nginx-dockerize
- Owner: ivandotv
- Created: 2020-01-20T20:49:21.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-12-15T05:17:41.000Z (over 2 years ago)
- Last Synced: 2025-01-14T03:10:36.184Z (over 1 year ago)
- Topics: docker, nginx
- Language: Shell
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# NGINX with Dockerize
This is a default Nginx image built from the latest Nginx upstream, with [dockerize utility](https://github.com/jwilder/dockerize).
Only the [templating functionality](https://github.com/jwilder/dockerize#using-templates) of the dockerize utility is used.
## What it Does
Please note that the **default Nginx configuration setup is unchanged**.
Configuration files are just modified to support templating, so you can modify the values via environment variables.
- [`nginx.conf`](build-assets/nginx.conf)
- [`default.conf`](build-asses/default.con)
## Custom configuration directory
You can also mount a custom configuration directory, and all configuration files inside the directory will be run through the [dockerize template utility](https://github.com/jwilder/dockerize#using-templates) and `included` at the end of the [`nginx.conf`](build-assets/nginx.conf#L33) file.
`docker run host_template_dir:/etc/nginx/custom.tmpl.d ivandotv/nginx-dockerize`
When files are processed they are moved to the `/etc/nginx/custom.d` and included.
## Building the Image
Run `build.sh` script to build the image.