add host 0.0.0.0 by start fastapi

This commit is contained in:
qiaofeng1227 2023-09-20 11:14:06 +08:00
parent 273ec4a4f5
commit c922e8afa6
2 changed files with 2 additions and 3 deletions

View File

@ -29,6 +29,7 @@ RUN apt update && apt install git jq supervisor -y && \
RUN pip install --upgrade pip && pip install -r apphub/requirements.txt
# supervisor
# RUN pip install supervisor
COPY config/supervisord.conf /usr/local/supervisord.conf
RUN chmod +r /usr/local/supervisord.conf

View File

@ -1,9 +1,7 @@
[supervisord]
nodaemon=false
[supervisorctl]
[program:apphub]
command=uvicorn src.main:app --reload --port 8080
command=uvicorn src.main:app --reload --host 0.0.0.0 --port 8080
autostart=true
directory=/websoft9/apphub