Tidy up the compose
This commit is contained in:
10
README.md
10
README.md
@@ -5,13 +5,13 @@ An nginx proxy server that caches requests only when explicitly requested via th
|
||||
## Quick Start
|
||||
|
||||
```bash
|
||||
# Build and run with docker-compose
|
||||
docker-compose up --build
|
||||
|
||||
# Or build with the build script
|
||||
# Build the image
|
||||
./build.sh
|
||||
|
||||
# Then run the built image
|
||||
# Run with docker-compose (uses the built image)
|
||||
docker-compose up
|
||||
|
||||
# Or run directly
|
||||
docker run -p 3000:3000 docker.site.quack-lab.dev/nginx-cache-proxy:latest
|
||||
```
|
||||
|
||||
|
||||
@@ -2,18 +2,14 @@ version: '3.8'
|
||||
|
||||
services:
|
||||
nginx-cache-proxy:
|
||||
build: .
|
||||
ports:
|
||||
- "3000:3000"
|
||||
image: docker.site.quack-lab.dev/nginx-cache-proxy:latest
|
||||
expose:
|
||||
- 3000
|
||||
volumes:
|
||||
- nginx_cache:/var/cache/nginx
|
||||
restart: unless-stopped
|
||||
healthcheck:
|
||||
test: ["CMD", "curl", "-f", "http://localhost:3000/?url=http://httpbin.org/get"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
start_period: 10s
|
||||
|
||||
volumes:
|
||||
nginx_cache:
|
||||
|
||||
Reference in New Issue
Block a user