mirror of
https://github.com/Websoft9/websoft9.git
synced 2024-09-29 08:11:14 +00:00
other container name
This commit is contained in:
parent
e23011d9c1
commit
0554bd61ae
|
@ -11,7 +11,7 @@ COPY static ./static
|
||||||
COPY requirements.txt main.py database.sqlite ./
|
COPY requirements.txt main.py database.sqlite ./
|
||||||
RUN apt update
|
RUN apt update
|
||||||
|
|
||||||
# Install supervisords
|
# Install supervisord
|
||||||
RUN apt install -y supervisor
|
RUN apt install -y supervisor
|
||||||
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
COPY config/supervisord.conf /etc/supervisor/conf.d/supervisord.conf
|
||||||
COPY config/cmd.sh /cmd.sh
|
COPY config/cmd.sh /cmd.sh
|
||||||
|
|
|
@ -17,6 +17,7 @@ app = FastAPI(docs_url=None, redoc_url=None, openapi_url="/")
|
||||||
@app.on_event("startup")
|
@app.on_event("startup")
|
||||||
async def startup_event():
|
async def startup_event():
|
||||||
myLogger.info_logger("start to write hostname")
|
myLogger.info_logger("start to write hostname")
|
||||||
|
shell_execute.execute_command_output_all("echo $(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' websoft9-appmanage) websoft9-redis >> /tmp/test")
|
||||||
shell_execute.execute_command_output_all("echo $(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' websoft9-appmanage) websoft9-appmanage >> /tmp/test")
|
shell_execute.execute_command_output_all("echo $(docker inspect -f '{{range.NetworkSettings.Networks}}{{.IPAddress}}{{end}}' websoft9-appmanage) websoft9-appmanage >> /tmp/test")
|
||||||
|
|
||||||
def get_app():
|
def get_app():
|
||||||
|
|
Loading…
Reference in a new issue