updating docker file
This commit is contained in:
@@ -40,7 +40,7 @@ RUN python -m pip install --upgrade pip \
|
|||||||
--trusted-host mirrors.aliyun.com \
|
--trusted-host mirrors.aliyun.com \
|
||||||
--default-timeout=300
|
--default-timeout=300
|
||||||
|
|
||||||
EXPOSE 8488
|
EXPOSE 8588
|
||||||
|
|
||||||
# Create entrypoint script that initializes conda/mamba and runs the command
|
# Create entrypoint script that initializes conda/mamba and runs the command
|
||||||
RUN echo '#!/bin/bash\n\
|
RUN echo '#!/bin/bash\n\
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
container_name: lang-agent-api
|
container_name: lang-agent-api
|
||||||
ports:
|
ports:
|
||||||
- "8488:8488"
|
- "8588:8588"
|
||||||
env_file:
|
env_file:
|
||||||
- ./.env
|
- ./.env
|
||||||
environment:
|
environment:
|
||||||
@@ -15,7 +15,7 @@ services:
|
|||||||
- ./assets:/app/assets
|
- ./assets:/app/assets
|
||||||
restart: unless-stopped
|
restart: unless-stopped
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8488/health')"]
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:8588/health')"]
|
||||||
interval: 30s
|
interval: 30s
|
||||||
timeout: 10s
|
timeout: 10s
|
||||||
retries: 3
|
retries: 3
|
||||||
|
|||||||
Reference in New Issue
Block a user