redis
This commit is contained in:
parent
0554bd61ae
commit
dfbc6958a0
2 changed files with 2 additions and 2 deletions
|
@ -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 supervisord
|
# Install supervisords
|
||||||
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,7 +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-redis) 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…
Add table
Reference in a new issue