add env in compose file

This commit is contained in:
jigoong
2026-02-17 11:20:37 +07:00
parent 6e3fcb95cf
commit bd7b658a6b
2 changed files with 3 additions and 3 deletions

View File

@@ -12,6 +12,6 @@ COPY ./app /app/app
ENV TZ=Asia/Bangkok 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","-"]

View File

@@ -21,7 +21,7 @@ services:
- shared_data_network - shared_data_network
restart: unless-stopped restart: unless-stopped
healthcheck: healthcheck:
test: ["CMD", "curl", "-f", "http://localhost:8000/apiservice/docs"] test: ["CMD", "curl", "-f", "http://localhost:8040/apiservice/docs"]
interval: 30s interval: 30s
timeout: 10s timeout: 10s
retries: 3 retries: 3