File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -51,4 +51,5 @@ COPY . .
5151EXPOSE 80
5252
5353# Run the application.
54- CMD gunicorn '.venv.lib.python3.12.site-packages.fastapi.middleware.wsgi' --bind=0.0.0.0:80
54+ # CMD gunicorn '.venv.lib.python3.12.site-packages.fastapi.middleware.wsgi' --bind=0.0.0.0:80
55+ CMD uvicorn main:app --host 0.0.0.0 --port 80
Original file line number Diff line number Diff line change @@ -3,6 +3,7 @@ version: '3.8'
33services :
44 db :
55 image : postgres:15.0
6+ platform : linux/amd64
67 # volumes:
78 # - ~/volumes/jhipster/baseapi/postgresql/:/var/lib/postgresql/data/
89 environment :
@@ -13,10 +14,24 @@ services:
1314 # remove the "127.0.0.1:" prefix
1415 ports :
1516 - 127.0.0.1:5432:5432
17+ app :
18+ image : maxiplux/fastapidevops-auth:latest
19+ platform : linux/amd64
20+ container_name : app
21+ restart : on-failure
22+ depends_on :
23+ - db
24+ environment :
25+ - DB_USERNAME=postgres
26+ - DB_PASSWORD =postgres
27+ - DB_HOST=db
28+ - DB_NAME=postgres
29+ ports :
30+ - 127.0.0.1:8080:80
1631
1732volumes :
1833 cache :
1934 driver : local
2035networks :
2136 dockernet :
22- external : true
37+ external : true
Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ ecdsa==0.18.0
1313fastapi == 0.109.0
1414filelock == 3.13.1
1515flake8 == 7.0.0
16+ gunicorn == 20.1.0
1617h11 == 0.14.0
1718httpcore == 1.0.2
1819httptools == 0.6.1
You can’t perform that action at this time.
0 commit comments