Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/j1m-ryan/nginx-watch
Docker Compose watch for NGINX
https://github.com/j1m-ryan/nginx-watch
docker docker-compose nginx reload watch
Last synced: about 2 months ago
JSON representation
Docker Compose watch for NGINX
- Host: GitHub
- URL: https://github.com/j1m-ryan/nginx-watch
- Owner: j1m-ryan
- Created: 2024-05-30T13:20:13.000Z (7 months ago)
- Default Branch: main
- Last Pushed: 2024-09-01T20:49:50.000Z (4 months ago)
- Last Synced: 2024-10-12T12:38:22.747Z (3 months ago)
- Topics: docker, docker-compose, nginx, reload, watch
- Language: Dockerfile
- Homepage:
- Size: 2.91 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# nginx-watch
Docker Compose watch for NGINX![Usage](readme-assets/output.gif)
## Requirements
- [Docker Compose](https://docs.docker.com/compose/)
## Setup
- Run `make watch` in one terminal
- Run `make logs` in another.Upon making a change to `nginx.conf`, or to files in the `conf.d` directory, NGINX will restart. Docker Compose `watch` does not handle logs, so the `make logs` command will restart each time compose restarts.
## Usage
1. add `cafe.example.com` to your `/etc/hosts` as follows
```
127.0.0.1 cafe.example.com
```2. curl `cafe.example.com`
3. make a change to the response in `nginx/conf.d/default.conf`
4. curl `cafe.example.com` again and notice the change