Tidy up the compose

This commit is contained in:
2026-01-07 19:11:28 +01:00
parent b98b401916
commit 3e17a01378
2 changed files with 8 additions and 12 deletions

View File

@@ -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
```

View File

@@ -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: