Commit b3c76c29 authored by Ai-Sasit's avatar Ai-Sasit

fix

parent 40f3c3aa
......@@ -11,4 +11,4 @@ COPY ./server /code/server
COPY easykey.pem /code
COPY easycert.pem /code
CMD ["uvicorn", "server.core:app", "--host", "0.0.0.0", "--port", "5000", "--ssl-keyfile", "./easykey.pem", "--ssl-certfile", "./easycert.pem"]
CMD ["uvicorn", "server.core:app", "--host", "0.0.0.0", "--port", "443", "--ssl-keyfile", "./easykey.pem", "--ssl-certfile", "./easycert.pem", "--reload"]
......@@ -5,7 +5,8 @@ services:
container_name: easybistro-api
build: .
ports:
- "5000:80"
- "80:80"
- "443:443"
depends_on:
- mongodb
......
import uvicorn
if __name__ == "__main__":
uvicorn.run("server.core:app", host="0.0.0.0", reload=True, proxy_headers=True)
\ No newline at end of file
uvicorn.run("server.core:app", host="0.0.0.0", reload=True, proxy_headers=True, ssl_certfile="easycert.pem", ssl_keyfile="easykey.pem", port=443)
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment