mirror of
https://github.com/lnbits/lnbits.git
synced 2025-06-07 13:42:06 +02:00
feat: dynamic port and host using environment variables
This commit is contained in:
parent
a132387fa8
commit
31bcb32e2d
@ -37,6 +37,9 @@ ENV PATH="$VIRTUAL_ENV/bin:$PATH"
|
|||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --chown=1000:1000 lnbits /app/lnbits
|
COPY --chown=1000:1000 lnbits /app/lnbits
|
||||||
|
|
||||||
|
ENV LNBITS_PORT="5000"
|
||||||
|
ENV LNBITS_HOST="0.0.0.0"
|
||||||
|
|
||||||
EXPOSE 5000
|
EXPOSE 5000
|
||||||
|
|
||||||
CMD ["uvicorn", "lnbits.__main__:app", "--port", "5000", "--host", "0.0.0.0"]
|
CMD ["sh", "-c", "uvicorn lnbits.__main__:app --port $LNBITS_PORT --host $LNBITS_HOST"]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user