mirror of
https://github.com/Websoft9/websoft9.git
synced 2025-02-03 01:28:39 +08:00
add host 0.0.0.0 by start fastapi
This commit is contained in:
parent
273ec4a4f5
commit
c922e8afa6
@ -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
|
||||
|
@ -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
|
Loading…
Reference in New Issue
Block a user