mirror of
https://github.com/frappe/gunicorn.git
synced 2026-07-07 21:21:30 +08:00
chore: use different ports in example docker-compose files
Avoid port conflicts when running multiple examples: - dirty_example: 8001 - embedding_service: 8002 - celery_alternative: 8003
This commit is contained in:
parent
68ce658f5d
commit
6d691b30e1
@ -15,7 +15,7 @@ services:
|
|||||||
context: ../.. # Gunicorn repo root
|
context: ../.. # Gunicorn repo root
|
||||||
dockerfile: examples/celery_alternative/Dockerfile
|
dockerfile: examples/celery_alternative/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8003:8000"
|
||||||
environment:
|
environment:
|
||||||
- GUNICORN_WORKERS=4
|
- GUNICORN_WORKERS=4
|
||||||
- DIRTY_WORKERS=9
|
- DIRTY_WORKERS=9
|
||||||
|
|||||||
@ -4,7 +4,7 @@ services:
|
|||||||
context: ../..
|
context: ../..
|
||||||
dockerfile: examples/embedding_service/Dockerfile
|
dockerfile: examples/embedding_service/Dockerfile
|
||||||
ports:
|
ports:
|
||||||
- "8000:8000"
|
- "8002:8000"
|
||||||
healthcheck:
|
healthcheck:
|
||||||
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=5)"]
|
test: ["CMD", "python", "-c", "import urllib.request; urllib.request.urlopen('http://127.0.0.1:8000/health', timeout=5)"]
|
||||||
interval: 10s
|
interval: 10s
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user