Skip to content

Commit 1ac1435

Browse files
committed
fix errors
1 parent f4bae05 commit 1ac1435

3 files changed

Lines changed: 19 additions & 2 deletions

File tree

Dockerfile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,5 @@ COPY . .
5151
EXPOSE 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

compose.yaml

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ version: '3.8'
33
services:
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

1732
volumes:
1833
cache:
1934
driver: local
2035
networks:
2136
dockernet:
22-
external: true
37+
external: true

requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ ecdsa==0.18.0
1313
fastapi==0.109.0
1414
filelock==3.13.1
1515
flake8==7.0.0
16+
gunicorn==20.1.0
1617
h11==0.14.0
1718
httpcore==1.0.2
1819
httptools==0.6.1

0 commit comments

Comments
 (0)