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