From bd7b658a6b28eb47cfd5d2b2b1be1596fb0c5777 Mon Sep 17 00:00:00 2001 From: jigoong Date: Tue, 17 Feb 2026 11:20:37 +0700 Subject: [PATCH] add env in compose file --- 03-apiservice/Dockerfile | 4 ++-- 03-apiservice/docker-compose.yml | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/03-apiservice/Dockerfile b/03-apiservice/Dockerfile index bc4e268..e75b84d 100644 --- a/03-apiservice/Dockerfile +++ b/03-apiservice/Dockerfile @@ -12,6 +12,6 @@ COPY ./app /app/app ENV TZ=Asia/Bangkok -EXPOSE 8000 +EXPOSE 8040 -CMD ["gunicorn","-k","uvicorn.workers.UvicornWorker","app.main:app","--bind","0.0.0.0:8000","--workers","2","--access-logfile","-","--error-logfile","-"] +CMD ["gunicorn","-k","uvicorn.workers.UvicornWorker","app.main:app","--bind","0.0.0.0:8040","--workers","2","--access-logfile","-","--error-logfile","-"] diff --git a/03-apiservice/docker-compose.yml b/03-apiservice/docker-compose.yml index 5f380cd..66f77d9 100644 --- a/03-apiservice/docker-compose.yml +++ b/03-apiservice/docker-compose.yml @@ -21,7 +21,7 @@ services: - shared_data_network restart: unless-stopped healthcheck: - test: ["CMD", "curl", "-f", "http://localhost:8000/apiservice/docs"] + test: ["CMD", "curl", "-f", "http://localhost:8040/apiservice/docs"] interval: 30s timeout: 10s retries: 3