Skip to content

Commit

Permalink
🚀 nginx setup
Browse files Browse the repository at this point in the history
  • Loading branch information
jiisanda committed Dec 29, 2023
1 parent 5035fbd commit c872877
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 3 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ Download docker image from [docker-hub](https://hub.docker.com/r/jiisanda/docflo

Or just run
```commandline
docker pull jiisanda/docflow
docker pull jiisanda/docflow:1
```

## 🧩 Implementation Detail
Expand Down
10 changes: 8 additions & 2 deletions docker-compose.prod.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
version: '3'
services:
api:
image: jiisanda/docflow
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
image: jiisanda/docflow:1
command: uvicorn app.main:app --host 0.0.0.0 --port 8000
nginx:
image: nginx:1.25.3-alpine
ports:
- "80:80"
volumes:
- ./nginx:/etc/nginx/conf.dAnd
8 changes: 8 additions & 0 deletions nginx/nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
server {
listen 80;
server_name _; # As we are using IP address or the public DNS of our EC2 instance

location / {
proxy_pass http://api:8000;
}
}

0 comments on commit c872877

Please sign in to comment.