Update image tag and fix uvicorn get real ip
This commit is contained in:
parent
5982bc0777
commit
4ed64e4db0
2 changed files with 2 additions and 2 deletions
|
@ -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", "*"]
|
|
@ -1,6 +1,6 @@
|
|||
services:
|
||||
app:
|
||||
image: hibobmaster/iplookupserver:test
|
||||
image: hibobmaster/iplookupserver:latest
|
||||
ports:
|
||||
- "127.0.0.1:8000:8000"
|
||||
restart: no
|
||||
|
|
Loading…
Reference in a new issue