修改端口为7400
This commit is contained in:
@@ -7,7 +7,7 @@ services:
|
||||
dockerfile: Dockerfile.low-mem
|
||||
container_name: diet_recommendation_app_low_mem
|
||||
ports:
|
||||
- "5000:5000"
|
||||
- "7400:7400"
|
||||
environment:
|
||||
- FLASK_ENV=production
|
||||
- PYTHONUNBUFFERED=1
|
||||
@@ -29,7 +29,7 @@ services:
|
||||
networks:
|
||||
- app-network
|
||||
healthcheck:
|
||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:5000/health').read()"]
|
||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://localhost:7400/health').read()"]
|
||||
interval: 30s
|
||||
timeout: 10s
|
||||
retries: 3
|
||||
|
||||
Reference in New Issue
Block a user