add env in compose file
This commit is contained in:
@@ -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","-"]
|
||||||
|
|||||||
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user