diff --git a/README.md b/README.md index e07d739..6fd08f8 100644 --- a/README.md +++ b/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 ``` diff --git a/docker-compose.yml b/docker-compose.yml index cf9137c..e2bdd59 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -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: