Skip to content

Commit a6069d0

Browse files
committed
Update README: Document port 8080 support
- Update networking section to mention both ports 80 and 8080 - Update Docker Compose example to expose both ports - Update basic usage example to show queries on both ports - Both ports handle requests identically with same caching behavior
1 parent 1c8cd16 commit a6069d0

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

README.md

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ A high-performance caching proxy server that sits in front of OWL reasoning serv
99
### Basic Usage
1010

1111
```bash
12-
# Start the proxy
13-
docker run -d --name owl-cache -p 80:80 virtualflybrain/owl_cache:latest
12+
# Start the proxy (both ports 80 and 8080 are available)
13+
docker run -d --name owl-cache -p 80:80 -p 8080:8080 virtualflybrain/owl_cache:latest
1414

15-
# Make a query (will be slow first time)
15+
# Make a query on port 80 (will be slow first time)
1616
curl "http://localhost/kbs/vfb/instances?object=<http://purl.obolibrary.org/obo/FBbt_00005106>"
1717

18-
# Same query again (will be fast from cache)
19-
curl "http://localhost/kbs/vfb/instances?object=<http://purl.obolibrary.org/obo/FBbt_00005106>"
18+
# Same query on port 8080 (will be fast from cache)
19+
curl "http://localhost:8080/kbs/vfb/instances?object=<http://purl.obolibrary.org/obo/FBbt_00005106>"
2020
```
2121

2222
### With Docker Compose
@@ -28,6 +28,7 @@ services:
2828
image: virtualflybrain/owl_cache:latest
2929
ports:
3030
- "80:80"
31+
- "8080:8080"
3132
environment:
3233
- UPSTREAM_SERVER=owl:8080 # For production with owl service
3334
- CACHE_MAX_SIZE=1t # 1TB cache size for high-traffic deployments
@@ -90,7 +91,7 @@ The proxy adds helpful headers to responses:
9091

9192
### Networking
9293

93-
- **Listen port**: 80
94+
- **Listen ports**: 80 and 8080 (both ports handle requests identically)
9495
- **DNS resolver**: Configurable via `DNS_RESOLVER` (default: Google Public DNS with 30s TTL for fast upstream IP updates). Check `cat /etc/resolv.conf` in your container for the correct value.
9596
- **Host-agnostic**: Ignores Host header for routing
9697
- **Connection pooling**: 16 keep-alive connections to backend

0 commit comments

Comments
 (0)