Update image tag and fix uvicorn get real ip

This commit is contained in:
hibobmaster 2023-08-20 14:31:33 +08:00
parent 5982bc0777
commit 4ed64e4db0
Signed by: bobmaster
SSH key fingerprint: SHA256:5ZYgd8fg+PcNZNy4SzcSKu5JtqZyBF8kUhY7/k2viDk
2 changed files with 2 additions and 2 deletions

View file

@ -12,4 +12,4 @@ COPY . /app
FROM runner
WORKDIR /app
EXPOSE 8000
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers"]
CMD ["uvicorn", "main:app", "--host", "0.0.0.0", "--port", "8000", "--proxy-headers", "--forwarded-allow-ips", "*"]

View file

@ -1,6 +1,6 @@
services:
app:
image: hibobmaster/iplookupserver:test
image: hibobmaster/iplookupserver:latest
ports:
- "127.0.0.1:8000:8000"
restart: no